amp-unique-id
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "amp-unique-id", | ||
"description": "unique-id function part of http://amp.ampersandjs.com.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -9,4 +9,4 @@ "amp": { | ||
"size": { | ||
"original": "409 B", | ||
"minified": "90 B" | ||
"original": "448 B", | ||
"minified": "95 B" | ||
} | ||
@@ -13,0 +13,0 @@ }, |
@@ -11,3 +11,4 @@ var test = require('tape'); | ||
t.deepEqual(ids, ['1', '2', '3', '4', '5', 'p6', 'p7', 'p8', 'p9', 'p10'], 'generates globally-unique ids with prefix'); | ||
t.end(); | ||
}); |
/*global window, global*/ | ||
var theGlobal = (typeof window !== 'undefined') ? window : global; | ||
theGlobal.__ampIdCounter = 0; | ||
if (!theGlobal.__ampIdCounter) { | ||
theGlobal.__ampIdCounter = 0; | ||
} | ||
@@ -5,0 +7,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
4588
23