short-uuid
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -5,6 +5,11 @@ # Change Log | ||
## [2.1.4] - 2017-05-14 | ||
### Changed | ||
- Correction of unpublish to deprecate. No code changes. | ||
- Updated [README.md], versions. | ||
## [2.1.3] - 2017-05-14 | ||
### Changed | ||
- Correction of bad npm publish. No code changes. | ||
- Updated README, versions. | ||
- Updated [README.md], versions. | ||
@@ -11,0 +16,0 @@ ## [2.1.2] - 2016-11-30 |
@@ -1,3 +0,3 @@ | ||
/*! short-uuid v2.1.3 - 2017-05-14 */ | ||
/*! short-uuid v2.1.4 - 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.3", | ||
"version": "2.1.4", | ||
"description": "Create and translate standard UUIDs with shorter formats.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,3 +9,3 @@ # short-uuid | ||
## v2.1.3 | ||
## v2.1.4 | ||
@@ -16,4 +16,5 @@ 2.1.0 adds Browserify config to support client-side use as proposed by [voronianski](https://github.com/voronianski). | ||
2.1.3 fixes a bad npm package for 2.1.1 which included Snyk incorrectly. | ||
2.1.4 corrects documentation of 2.1.2 from unpublished to deprecated. | ||
### v2.1.2 Unpublished | ||
### v2.1.2 Deprecated | ||
@@ -20,0 +21,0 @@ An incorrect package.json was packaged in v2.1.2, causing Snyk to be listed as a dependency. |
# Revisions | ||
# v.2.1.4 | ||
2.1.4 corrects documentation of 2.1.2 deprecation. | ||
# v2.1.3 | ||
@@ -7,3 +11,3 @@ | ||
# v2.1.2 - UNPUBLISHED | ||
# v2.1.2 - DEPRECATED | ||
@@ -10,0 +14,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
36277
54