UNPKG

3.2 kBSource Map (JSON)View Raw
1{"version":3,"file":"text.js","sources":["../src/text.js"],"sourcesContent":["const englishList = arr => arr.join(', ').replace(/, ([^,]+)$/g, ' and $1');\n\nexport default {\n // Initialization Error Messages\n\n duplicateLevelNums: nums =>\n `The custom levels included duplicate levels: ${englishList(nums)}.`,\n\n duplicateLevels: names =>\n `The custom levels included duplicate names: ${englishList(names)}.`,\n\n invalidLevelNum: num =>\n `The custom levels object had the invalid level number ${num}.`,\n\n invalidToken: token =>\n `The opts.token property \"${token}\" does not appear to be valid.`,\n\n levelConflict: name =>\n `The custom level name ${name} conflicts with a native property.`,\n\n levelNotString: value =>\n `The custom level value ${value} is invalid.`,\n\n levelsNotObj: type =>\n `The opts.levels value is a ${type}.`,\n\n noOptions: () =>\n 'The options argument is missing.',\n\n noToken: () =>\n 'The opts.token property is missing.',\n\n optionsNotObj: type =>\n `The options argument is a ${type}.`,\n\n tooManyLevels: count =>\n `The custom levels array had ${count} members (max is 8).`,\n\n // Operation Error Messages\n\n authError: err =>\n `TLS authorization error: ${err || 'UNKNOWN'}.`,\n\n bufferFull: log =>\n `Buffer is full, unable to log: \"${log.substr(0, 25)} ...\".`,\n\n cannotConnect: () =>\n 'Unable to connect to host. Will attempt again in three minutes.',\n\n noLogMessage: () =>\n 'Log method was called without a message argument.',\n\n serializedEmpty: () =>\n 'Log message argument existed, but serialized to an empty string.',\n\n unknownLevel: level =>\n `The log method was called with the unknown level \"${level}\".`,\n\n // Deprecation Warnings\n\n deprecatedLevelMethod: () =>\n 'The `level` method is deprecated. Use the `minLevel` property, ' +\n 'which allows specifying level by either the name or the index.',\n\n deprecatedWinstonMethod: () =>\n 'The `winston` method is deprecated. Winston was automatically ' +\n 'provisioned with a Logentries transport as soon as you `require()`d ' +\n 'this module.'\n};\n"],"names":[],"mappings":";;;;;AAAA,IAAM,cAAc,SAAd,WAAc;AAAA,WAAO,IAAI,IAAJ,CAAS,IAAT,EAAe,OAAf,CAAuB,aAAvB,EAAsC,SAAtC,CAAP;AAAA,CAApB;;kBAEe;;AAGb,wBAAoB;AAAA,iEACgC,YAAY,IAAZ,CADhC;AAAA,KAHP;;AAMb,qBAAiB;AAAA,gEACkC,YAAY,KAAZ,CADlC;AAAA,KANJ;;AASb,qBAAiB;AAAA,0EAC4C,GAD5C;AAAA,KATJ;;AAYb,kBAAc;AAAA,6CACkB,KADlB;AAAA,KAZD;;AAeb,mBAAe;AAAA,0CACc,IADd;AAAA,KAfF;;AAkBb,oBAAgB;AAAA,2CACc,KADd;AAAA,KAlBH;;AAqBb,kBAAc;AAAA,+CACoB,IADpB;AAAA,KArBD;;AAwBb,eAAW;AAAA,eACP,kCADO;AAAA,KAxBE;;AA2Bb,aAAS;AAAA,eACL,qCADK;AAAA,KA3BI;;AA8Bb,mBAAe;AAAA,8CACkB,IADlB;AAAA,KA9BF;;AAiCb,mBAAe;AAAA,gDACoB,KADpB;AAAA,KAjCF;;AAsCb,eAAW;AAAA,8CACqB,OAAO,SAD5B;AAAA,KAtCE;;AAyCb,gBAAY;AAAA,oDAC2B,IAAI,MAAJ,CAAW,CAAX,EAAc,EAAd,CAD3B;AAAA,KAzCC;;AA4Cb,mBAAe;AAAA,eACX,iEADW;AAAA,KA5CF;;AA+Cb,kBAAc;AAAA,eACV,mDADU;AAAA,KA/CD;;AAkDb,qBAAiB;AAAA,eACb,kEADa;AAAA,KAlDJ;;AAqDb,kBAAc;AAAA,sEAC2C,KAD3C;AAAA,KArDD;;AA0Db,2BAAuB;AAAA,eACvB,oEACA,gEAFuB;AAAA,KA1DV;;AA8Db,6BAAyB;AAAA,eACzB,mEACA,sEADA,GAEA,cAHyB;AAAA;AA9DZ"}
\No newline at end of file