brisky-stamp
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -1,56 +0,54 @@ | ||
'use strict'; | ||
// FILE: /Users/youzi/dev/brisky-stamp/lib/index.js | ||
if (!global.briskystamp) { | ||
'use strict'; | ||
var exports$1 = {}; | ||
const ts = exports$1.ts = 535673248076; | ||
var tsInProgress = false; | ||
var cnt = 0; | ||
var d; | ||
var on; | ||
const bs = {} | ||
const ts = bs.ts = 535673248076 | ||
var tsInProgress = false | ||
var cnt = 0 | ||
var d | ||
var on | ||
global.briskystamp = exports$1; | ||
exports$1.inProgress = false; | ||
exports$1.offset = 0; | ||
global.briskystamp = bs | ||
bs.inProgress = false | ||
bs.offset = 0 | ||
const ms = () => { | ||
if (!tsInProgress) { | ||
cnt = 0; | ||
d = Date.now() - ts + exports$1.offset; | ||
tsInProgress = true; | ||
setTimeout(() => { tsInProgress = false; }); | ||
cnt = 0 | ||
d = Date.now() - ts + bs.offset | ||
tsInProgress = true | ||
setTimeout(() => { tsInProgress = false }) | ||
} else { | ||
d += ++cnt / 9999; | ||
d += ++cnt / 9999 | ||
} | ||
return d | ||
}; | ||
} | ||
exports$1.create = override => override || ms(); | ||
bs.create = override => override || ms() | ||
exports$1.on = fn => { | ||
bs.on = fn => { | ||
if (!on) { | ||
on = [ fn ]; | ||
on = [ fn ] | ||
} else { | ||
on.push(fn); | ||
on.push(fn) | ||
} | ||
}; | ||
} | ||
exports$1.clear = () => { on = false; }; // rename this to stop | ||
bs.clear = () => { on = false } // rename this to stop | ||
exports$1.close = () => { | ||
if (on && !exports$1.inProgress) { | ||
exports$1.inProgress = true; | ||
for (let i = 0; i < on.length; i++) { on[i](); } | ||
exports$1.inProgress = on = false; | ||
bs.close = () => { | ||
if (on && !bs.inProgress) { | ||
bs.inProgress = true | ||
for (let i = 0; i < on.length; i++) { on[i]() } | ||
bs.inProgress = on = false | ||
} | ||
}; | ||
} | ||
exports$1.parse = stamp => { | ||
return stamp > 1e6 ? (stamp + ts) : stamp | ||
}; | ||
bs.parse = stamp => stamp > 1e6 ? (stamp + ts) : stamp | ||
} | ||
var index = global.briskystamp; | ||
const $501350144 = global.briskystamp | ||
module.exports = index; | ||
//# sourceMappingURL=index.js.map | ||
module.exports = $501350144 |
{ | ||
"name": "brisky-stamp", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Generate unique meta information for change in a system", | ||
"main": "dist/index.js", | ||
"module": "dist/index.es.js", | ||
"jsnext:main": "dist/index.es.js", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"watch": "rollup -c -w", | ||
"dev-browser": "budo test/index.js --live", | ||
"build": "builder-boy lib/index.js dist/index.js", | ||
"dev": "builder-boy lib/index.js dist/index.js -w", | ||
"prepublish": "npm run build", | ||
"pretest": "npm run build", | ||
"test": "node test | tap-difflet && standard", | ||
"dev": "nodemon test | tap-difflet", | ||
"cover": "istanbul cover --report none --print detail test/index.js", | ||
"travis": "npm run cover -s && istanbul report lcov && ((cat coverage/lcov.info | coveralls) || exit 0) && standard" | ||
"test": "standard --fix && node test/index.js", | ||
"cover": "nyc npm test", | ||
"travis": "nyc npm test && nyc report --reporter=text-lcov | coveralls" | ||
}, | ||
@@ -28,18 +24,18 @@ "repository": { | ||
], | ||
"files": [ | ||
"dist", | ||
"package.json" | ||
], | ||
"devDependencies": { | ||
"budo": "^9.4.5", | ||
"builder-boy": "latest", | ||
"coveralls": "^2.11.9", | ||
"istanbul": "^0.4.3", | ||
"nodemon": "^1.9.1", | ||
"nodemon": "^1.11.0", | ||
"nyc": "^10.0.0", | ||
"pre-commit": "^1.1.3", | ||
"rollup": "^0.37.0", | ||
"rollup-watch": "^2.5.0", | ||
"standard": "^8.4.0", | ||
"tap-difflet": "0.4.0", | ||
"tape": "^4.4.0" | ||
"standard": "^8.1.0", | ||
"tape": "4.6.0" | ||
}, | ||
"nyc": { | ||
"include": [ | ||
"dist/index.js" | ||
], | ||
"sourceMap": true, | ||
"instrument": true | ||
}, | ||
"author": "jim de beer", | ||
@@ -50,6 +46,3 @@ "license": "ISC", | ||
}, | ||
"homepage": "https://github.com/vigour-io/stamp#readme", | ||
"dependencies": { | ||
"global": "^4.3.1" | ||
} | ||
"homepage": "https://github.com/vigour-io/stamp#readme" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
133172
0
7
124
1
- Removedglobal@^4.3.1
- Removeddom-walk@0.1.2(transitive)
- Removedglobal@4.4.0(transitive)
- Removedmin-document@2.19.0(transitive)
- Removedprocess@0.11.10(transitive)