short-uuid
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -5,8 +5,6 @@ # Change Log | ||
## [2.2.0] - 2016-11-30 | ||
### Added | ||
- Added Snyk vulnerability monitoring and patching | ||
## [2.1.3] - 2017-05-14 | ||
### Changed | ||
- Updated devDependencies and added Snyk scripts to [package.json] | ||
- Correction of bad npm publish. No code changes. | ||
- Updated README, versions. | ||
@@ -13,0 +11,0 @@ ## [2.1.2] - 2016-11-30 |
@@ -1,2 +0,3 @@ | ||
/*! short-uuid v2.1.2 - 2016-11-30 */ | ||
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.ShortUUID=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){b.exports=function(){function b(a,b){return b(a.replace(/-/g,""))}function c(a,b){for(var c,d=b(a),e="",f=0,g=32-d.length;f<g;++f)e+="0";return c=(e+d).match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/),[c[1],c[2],c[3],c[4],c[5]].join("-")}function d(a){var d=a||g,h=e(e.HEX,d),i=e(d,e.HEX);return{new:function(){return b(f(),h)},uuid:f,fromUUID:function(a){return b(a,h)},toUUID:function(a){return c(a,i)},alphabet:d}}var e=a("any-base"),f=a("uuid/v4"),g="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",h="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~";return d.constants={flickrBase58:g,cookieBase90:h},d.uuid=f,d}()},{"any-base":2,"uuid/v4":6}],2:[function(a,b,c){function d(a,b){var c=new e(a,b);return function(a){return c.convert(a)}}var e=a("./src/converter");d.BIN="01",d.OCT="01234567",d.DEC="0123456789",d.HEX="0123456789abcdef",b.exports=d},{"./src/converter":3}],3:[function(a,b,c){"use strict";function d(a,b){if(!(a&&b&&a.length&&b.length))throw new Error("Bad alphabet");this.srcAlphabet=a,this.dstAlphabet=b}d.prototype.convert=function(a){var b,c,d,e={},f=this.srcAlphabet.length,g=this.dstAlphabet.length,h=a.length,i="";if(this.srcAlphabet===this.dstAlphabet)return a;for(b=0;b<h;b++)e[b]=this.srcAlphabet.indexOf(a[b]);do{for(c=0,d=0,b=0;b<h;b++)c=c*f+e[b],c>=g?(e[d++]=parseInt(c/g,10),c%=g):d>0&&(e[d++]=0);h=d,i=this.dstAlphabet[c]+i}while(0!=d);return i},b.exports=d},{}],4:[function(a,b,c){function d(a,b){var c=b||0,d=e;return d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]}for(var e=[],f=0;f<256;++f)e[f]=(f+256).toString(16).substr(1);b.exports=d},{}],5:[function(a,b,c){var d,e=global.crypto||global.msCrypto;if(e&&e.getRandomValues){var f=new Uint8Array(16);d=function(){return e.getRandomValues(f),f}}if(!d){var g=new Array(16);d=function(){for(var a,b=0;b<16;b++)0===(3&b)&&(a=4294967296*Math.random()),g[b]=a>>>((3&b)<<3)&255;return g}}b.exports=d},{}],6:[function(a,b,c){function d(a,b,c){var d=b&&c||0;"string"==typeof a&&(b="binary"==a?new Array(16):null,a=null),a=a||{};var g=a.random||(a.rng||e)();if(g[6]=15&g[6]|64,g[8]=63&g[8]|128,b)for(var h=0;h<16;++h)b[d+h]=g[h];return b||f(g)}var e=a("./lib/rng"),f=a("./lib/bytesToUuid");b.exports=d},{"./lib/bytesToUuid":4,"./lib/rng":5}]},{},[1])(1)}); | ||
/*! short-uuid v2.1.3 - 2017-05-14 */ | ||
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.ShortUUID=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){b.exports=function(){function b(a,b){return b(a.replace(/-/g,""))}function c(a,b){for(var c,d=b(a),e="",f=0,g=32-d.length;f<g;++f)e+="0";return c=(e+d).match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/),[c[1],c[2],c[3],c[4],c[5]].join("-")}function d(a){var d=a||g,h=e(e.HEX,d),i=e(d,e.HEX);return{new:function(){return b(f(),h)},uuid:f,fromUUID:function(a){return b(a,h)},toUUID:function(a){return c(a,i)},alphabet:d}}var e=a("any-base"),f=a("uuid/v4"),g="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ";return d.constants={flickrBase58:g,cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"},d.uuid=f,d}()},{"any-base":2,"uuid/v4":6}],2:[function(a,b,c){function d(a,b){var c=new e(a,b);return function(a){return c.convert(a)}}var e=a("./src/converter");d.BIN="01",d.OCT="01234567",d.DEC="0123456789",d.HEX="0123456789abcdef",b.exports=d},{"./src/converter":3}],3:[function(a,b,c){"use strict";function d(a,b){if(!(a&&b&&a.length&&b.length))throw new Error("Bad alphabet");this.srcAlphabet=a,this.dstAlphabet=b}d.prototype.convert=function(a){var b,c,d,e={},f=this.srcAlphabet.length,g=this.dstAlphabet.length,h=a.length,i="";if(this.srcAlphabet===this.dstAlphabet)return a;for(b=0;b<h;b++)e[b]=this.srcAlphabet.indexOf(a[b]);do{for(c=0,d=0,b=0;b<h;b++)c=c*f+e[b],c>=g?(e[d++]=parseInt(c/g,10),c%=g):d>0&&(e[d++]=0);h=d,i=this.dstAlphabet[c]+i}while(0!=d);return i},b.exports=d},{}],4:[function(a,b,c){function d(a,b){var c=b||0,d=e;return d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]}for(var e=[],f=0;f<256;++f)e[f]=(f+256).toString(16).substr(1);b.exports=d},{}],5:[function(a,b,c){var d,e=global.crypto||global.msCrypto;if(e&&e.getRandomValues){var f=new Uint8Array(16);d=function(){return e.getRandomValues(f),f}}if(!d){var g=new Array(16);d=function(){for(var a,b=0;b<16;b++)0==(3&b)&&(a=4294967296*Math.random()),g[b]=a>>>((3&b)<<3)&255;return g}}b.exports=d},{}],6:[function(a,b,c){function d(a,b,c){var d=b&&c||0;"string"==typeof a&&(b="binary"==a?new Array(16):null,a=null),a=a||{};var g=a.random||(a.rng||e)();if(g[6]=15&g[6]|64,g[8]=63&g[8]|128,b)for(var h=0;h<16;++h)b[d+h]=g[h];return b||f(g)}var e=a("./lib/rng"),f=a("./lib/bytesToUuid");b.exports=d},{"./lib/bytesToUuid":4,"./lib/rng":5}]},{},[1])(1)}); |
{ | ||
"name": "short-uuid", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Create and translate standard UUIDs with shorter formats.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "snyk test && grunt test", | ||
"test": "grunt test", | ||
"cover": "grunt cover", | ||
"build": "grunt build", | ||
"snyk-protect": "snyk protect", | ||
"prepublish": "npm run snyk-protect" | ||
"build": "grunt build" | ||
}, | ||
@@ -31,7 +29,6 @@ "repository": { | ||
"any-base": "^1.0.0", | ||
"uuid": "^3.0.0", | ||
"snyk": "^1.21.2" | ||
"uuid": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"codeclimate-test-reporter": "^0.4.0", | ||
"codeclimate-test-reporter": "^0.3.1", | ||
"grunt": "^1.0.1", | ||
@@ -44,5 +41,4 @@ "grunt-browserify": "^5.0.0", | ||
"istanbul": "^0.4.3", | ||
"mocha": "^3.0.0" | ||
}, | ||
"snyk": true | ||
} | ||
"mocha": "^2.5.3" | ||
} | ||
} |
@@ -9,12 +9,17 @@ # short-uuid | ||
## v2.2.0 | ||
## v2.1.3 | ||
2.1.0 adds Browserify config to support client-side use as proposed by [voronianski](https://github.com/voronianski). | ||
2.1.1 includes compiled browser-ready files in the npm package for convenience. The library is exposed as `ShortUUID`. | ||
2.1.2 switches to the modular `uuid` library. | ||
2.1.3 fixes a bad npm package for 2.1.1 which included Snyk incorrectly. | ||
### v2.1.2 Unpublished | ||
An incorrect package.json was packaged in v2.1.2, causing Snyk to be listed as a dependency. | ||
This was introduced in v2.2.0. | ||
short-uuid provides RFC4122 v4-compliant UUIDs, | ||
thanks to [`uuid`](https://github.com/kelektiv/node-uuid). | ||
It includes Browserify support for client-side use as proposed by [voronianski](https://github.com/voronianski), | ||
with compiled browser-ready files in the npm package for convenience. The library is exposed as `ShortUUID`. | ||
2.2.0 adds [Synk](https://snyk.io) vulnerability protection and updates dev dependencies. | ||
```javascript | ||
@@ -46,4 +51,4 @@ var short = require('short-uuid'); | ||
v2.2.0 is under 1K when compressed. Using Browserify, the library and dependencies are ~3.2K. | ||
v2.1.3 is under 1K when compressed. Using Browserify, the library and dependencies are less than 4K. | ||
Please see [Revisions](revisions.md) for information on previous versions. |
# Revisions | ||
# v2.2.0 | ||
# v2.1.3 | ||
2.2.0 updates dev dependencies and adds Snyk vulnerability monitoring and patching. | ||
2.1.3 corrects a bad package.json in the 2.1.2 npm package. | ||
# v2.1.2 | ||
# v2.1.2 - UNPUBLISHED | ||
@@ -9,0 +9,0 @@ 2.1.2 changes to `uuid` 3.0.0 and uses only the `uuid/v4` module. |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
2
0
53
36014
17
- Removedsnyk@^1.21.2
- Removed@sentry-internal/tracing@7.120.0(transitive)
- Removed@sentry/core@7.120.0(transitive)
- Removed@sentry/integrations@7.120.0(transitive)
- Removed@sentry/node@7.120.0(transitive)
- Removed@sentry/types@7.120.0(transitive)
- Removed@sentry/utils@7.120.0(transitive)
- Removedboolean@3.2.0(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removeddetect-node@2.1.0(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes6-error@4.1.1(transitive)
- Removedescape-string-regexp@4.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedglobal-agent@3.0.0(transitive)
- Removedglobalthis@1.0.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedimmediate@3.0.6(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedlie@3.1.1(transitive)
- Removedlocalforage@1.10.0(transitive)
- Removedmatcher@3.0.0(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedroarr@2.15.4(transitive)
- Removedsemver@7.6.3(transitive)
- Removedsemver-compare@1.0.0(transitive)
- Removedserialize-error@7.0.1(transitive)
- Removedsnyk@1.1294.0(transitive)
- Removedsprintf-js@1.1.3(transitive)
- Removedtype-fest@0.13.1(transitive)