brisky-stamp
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -27,3 +27,2 @@ if (!global.briskystamp) { | ||
exports.create = (type, src, override) => { | ||
if (override) override = override - ts; | ||
if (type) { | ||
@@ -40,3 +39,3 @@ return [ override || ms(), src || 0, parseInt(type, 36) ] | ||
exports.val = stamp => stamp && ((stamp[0] || stamp) + ts); | ||
exports.val = stamp => stamp && ((stamp[0] || stamp)); | ||
@@ -65,3 +64,3 @@ exports.type = stamp => stamp[2] && stamp[2].toString(36); | ||
if (typeof stamp === 'object') { | ||
const parsed = { val: stamp[0] + ts }; | ||
const parsed = { val: stamp[0] }; | ||
const src = stamp[1]; | ||
@@ -73,3 +72,3 @@ const type = exports.type(stamp); | ||
} else { | ||
return { val: stamp + ts } | ||
return { val: stamp } | ||
} | ||
@@ -76,0 +75,0 @@ }; |
@@ -29,3 +29,2 @@ 'use strict'; | ||
exports.create = (type, src, override) => { | ||
if (override) override = override - ts; | ||
if (type) { | ||
@@ -42,3 +41,3 @@ return [ override || ms(), src || 0, parseInt(type, 36) ] | ||
exports.val = stamp => stamp && ((stamp[0] || stamp) + ts); | ||
exports.val = stamp => stamp && ((stamp[0] || stamp)); | ||
@@ -67,3 +66,3 @@ exports.type = stamp => stamp[2] && stamp[2].toString(36); | ||
if (typeof stamp === 'object') { | ||
const parsed = { val: stamp[0] + ts }; | ||
const parsed = { val: stamp[0] }; | ||
const src = stamp[1]; | ||
@@ -75,3 +74,3 @@ const type = exports.type(stamp); | ||
} else { | ||
return { val: stamp + ts } | ||
return { val: stamp } | ||
} | ||
@@ -78,0 +77,0 @@ }; |
{ | ||
"name": "brisky-stamp", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Generate unique meta information for change in a system", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
14514
131