UNPKG

3.67 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":["deprecatedWinstonMethod","deprecatedLevelMethod","level","unknownLevel","serializedEmpty","noLogMessage","cannotConnect","log","substr","bufferFull","err","authError","count","tooManyLevels","type","optionsNotObj","noToken","noOptions","levelsNotObj","value","levelNotString","name","levelConflict","token","invalidToken","num","invalidLevelNum","englishList","names","duplicateLevels","nums","duplicateLevelNums","arr","join","replace"],"mappings":";;;;;AAAA,IAAM2B,cAAc,SAAdA,WAAc;AAAA,WAAOK,IAAIC,IAAJ,CAAS,IAAT,EAAeC,OAAf,CAAuB,aAAvB,EAAsC,SAAtC,CAAP;AAAA,CAApB;;kBAEe;;AAGbH,wBAAoB;AAAA,iEACgCJ,YAAYG,IAAZ,CADhC;AAAA,KAHP;;AAMbD,qBAAiB;AAAA,gEACkCF,YAAYC,KAAZ,CADlC;AAAA,KANJ;;AASbF,qBAAiB;AAAA,0EAC4CD,GAD5C;AAAA,KATJ;;AAYbD,kBAAc;AAAA,6CACkBD,KADlB;AAAA,KAZD;;AAebD,mBAAe;AAAA,0CACcD,IADd;AAAA,KAfF;;AAkBbD,oBAAgB;AAAA,2CACcD,KADd;AAAA,KAlBH;;AAqBbD,kBAAc;AAAA,+CACoBJ,IADpB;AAAA,KArBD;;AAwBbG,eAAW;AAAA,eACP,kCADO;AAAA,KAxBE;;AA2BbD,aAAS;AAAA,eACL,qCADK;AAAA,KA3BI;;AA8BbD,mBAAe;AAAA,8CACkBD,IADlB;AAAA,KA9BF;;AAiCbD,mBAAe;AAAA,gDACoBD,KADpB;AAAA,KAjCF;;AAsCbD,eAAW;AAAA,8CACqBD,OAAO,SAD5B;AAAA,KAtCE;;AAyCbD,gBAAY;AAAA,oDAC2BF,IAAIC,MAAJ,CAAW,CAAX,EAAc,EAAd,CAD3B;AAAA,KAzCC;;AA4CbF,mBAAe;AAAA,eACX,iEADW;AAAA,KA5CF;;AA+CbD,kBAAc;AAAA,eACV,mDADU;AAAA,KA/CD;;AAkDbD,qBAAiB;AAAA,eACb,kEADa;AAAA,KAlDJ;;AAqDbD,kBAAc;AAAA,sEAC2CD,KAD3C;AAAA,KArDD;;AA0DbD,2BAAuB;AAAA,eACvB,oEACA,gEAFuB;AAAA,KA1DV;;AA8DbD,6BAAyB;AAAA,eACzB,mEACA,sEADA,GAEA,cAHyB;AAAA;AA9DZ"}
\No newline at end of file