Comparing version 3.1.3 to 3.2.0
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const approximate_now_1 = require("approximate-now"); | ||
const detect_node_1 = __importDefault(require("detect-node")); | ||
@@ -65,3 +66,3 @@ const globalthis_1 = __importDefault(require("globalthis")); | ||
const log = (a, b, c, d, e, f, g, h, i, j) => { | ||
const time = Date.now(); | ||
const time = approximate_now_1.approximateTime.now; | ||
const sequence = globalThis.ROARR.sequence++; | ||
@@ -114,5 +115,2 @@ let context; | ||
return createLogger((message) => { | ||
if (typeof context !== 'function') { | ||
throw new TypeError('Unexpected state.'); | ||
} | ||
const nextMessage = context(message); | ||
@@ -119,0 +117,0 @@ if (typeof nextMessage !== 'object' || nextMessage === null) { |
"use strict"; | ||
/* eslint-disable import/exports-last */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -19,2 +19,3 @@ { | ||
"dependencies": { | ||
"approximate-now": "^1.0.0", | ||
"boolean": "^3.0.2", | ||
@@ -73,6 +74,6 @@ "detect-node": "^2.0.4", | ||
"scripts": { | ||
"benchmark": "ROARR_LOG=true babel-node test/benchmark.js", | ||
"benchmark": "ROARR_LOG=true ts-node --transpile-only test/benchmark.ts", | ||
"build": "del-cli ./dist && tsc", | ||
"create-readme": "gitdown ./.README/README.md --output-file ./README.md", | ||
"dev": "NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch", | ||
"dev": "tsc --watch", | ||
"lint": "eslint ./src ./test && tsc --noEmit", | ||
@@ -82,3 +83,3 @@ "test": "NODE_ENV=test ava --serial --verbose" | ||
"typings": "./dist/log.d.ts", | ||
"version": "3.1.3" | ||
"version": "3.2.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40829
9
441
+ Addedapproximate-now@^1.0.0
+ Addedapproximate-now@1.0.2(transitive)