brisky-stamp
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -60,12 +60,8 @@ if (!global.briskystamp) { | ||
exports.parse = stamp => { | ||
if (typeof stamp === 'object') { | ||
const parsed = { val: stamp[0] }; | ||
const src = stamp[1]; | ||
const type = exports.type(stamp); | ||
if (src) parsed.src = src; | ||
if (type) parsed.type = type; | ||
return parsed | ||
} else { | ||
return { val: stamp } | ||
} | ||
const parsed = { val: stamp[0] }; | ||
const src = stamp[1]; | ||
const type = exports.type(stamp); | ||
if (src) parsed.src = src; | ||
if (type) parsed.type = type; | ||
return parsed | ||
}; | ||
@@ -72,0 +68,0 @@ } |
@@ -62,12 +62,8 @@ 'use strict'; | ||
exports.parse = stamp => { | ||
if (typeof stamp === 'object') { | ||
const parsed = { val: stamp[0] }; | ||
const src = stamp[1]; | ||
const type = exports.type(stamp); | ||
if (src) parsed.src = src; | ||
if (type) parsed.type = type; | ||
return parsed | ||
} else { | ||
return { val: stamp } | ||
} | ||
const parsed = { val: stamp[0] }; | ||
const src = stamp[1]; | ||
const type = exports.type(stamp); | ||
if (src) parsed.src = src; | ||
if (type) parsed.type = type; | ||
return parsed | ||
}; | ||
@@ -74,0 +70,0 @@ } |
{ | ||
"name": "brisky-stamp", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"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
13770
121