Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gram-data/gram-identity

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gram-data/gram-identity - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

3

dist/gram-identity.umd.development.js

@@ -139,4 +139,3 @@ (function (global, factory) {

id += alphabet[bytes[j] & mask] || '';
// `id.length + 1 === size` is a more compact option.
if (id.length === +size) return id
if (id.length === size) return id
}

@@ -143,0 +142,0 @@ }

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).gram=e.gram||{},e.gram.identity={}))}(this,(function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}var r={base2:"01",dieBase6:"⚀⚁⚂⚃⚄⚅",base8:"01234567",base10:"0123456789",astrologyBase12:"♈︎♉︎♊︎♋︎♌︎♍︎♎︎♏︎♐︎♑︎♒︎♓︎",base11:"0123456789a",chessBase12:"♚♛♜♝♞♟♔♕♖♗♘♙",base16:"0123456789abcdef",dominoBase28:"🁣🁤🁫🁥🁬🁳🁦🁭🁴🁻🁧🁮🁵🁼🂃🁨🁯🁶🁽🂊🂋🁩🁰🁷🁾🂅🂌🂓",base32:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",zBase32:"ybndrfg8ejkmcpqxot1uwisza345h769",crock32:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",base32Hex:"0123456789ABCDEFGHIJKLMNOPQRSTUV",base36:"0123456789abcdefghijklmnopqrstuvwxyz",mahjongBase43:"🀑🀒🀓🀔🀕🀖🀗🀘🀙🀚🀛🀜🀝🀞🀟🀠🀡🀇🀈🀉🀊🀋🀌🀍🀎🀏🀀🀁🀂🀃🀄︎🀅🀆🀐🀢🀣🀤🀥🀦🀧🀨🀩🀪",cards56:"🂡🂢🂣🂤🂥🂦🂧🂨🂩🂪🂫🂬🂭🂮🂱🂲🂳🂴🂵🂶🂷🂸🂹🂺🂻🂼🂽🂾🃁🃂🃃🃄🃅🃆🃇🃈🃉🃊🃋🃌🃍🃎🃑🃒🃓🃔🃕🃖🃗🃘🃙🃝🃞",base58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",base62:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",base64:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@",cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"},a=function(e){var t=0;return{generate:function(){return""+(e||"")+t++}}};let n=e=>crypto.getRandomValues(new Uint8Array(e));var o=function(e,t,a){void 0===e&&(e=r.base64),void 0===t&&(t=21);var o=((e,t)=>((e,t,r)=>{let a=(2<<Math.log(e.length-1)/Math.LN2)-1,n=-~(1.6*a*t/e.length);return()=>{let o="";for(;;){let i=r(n),s=n;for(;s--;)if(o+=e[i[s]&a]||"",o.length===+t)return o}}})(e,t,n))(e,t);return{generate:function(){return a?a+o():o()}}},i=require("unist-util-visit"),s={generator:"counter",alphabet:r.base58,prefix:void 0};e.alphabets=r,e.counterIDGenerator=a,e.gramIdentityPlugin=function(e){var r=t({},s,e);return function(e){var t;switch(r.generator){case"nanoid":t=o(r.alphabet,21,r.prefix);break;case"counter":default:t=a(r.prefix)}i(e,(function(e){var r;(r=e).type&&"path"===r.type&&(e.id=e.id||t.generate())}))}},e.nanoidGenerator=o,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).gram=e.gram||{},e.gram.identity={}))}(this,(function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}var r={base2:"01",dieBase6:"⚀⚁⚂⚃⚄⚅",base8:"01234567",base10:"0123456789",astrologyBase12:"♈︎♉︎♊︎♋︎♌︎♍︎♎︎♏︎♐︎♑︎♒︎♓︎",base11:"0123456789a",chessBase12:"♚♛♜♝♞♟♔♕♖♗♘♙",base16:"0123456789abcdef",dominoBase28:"🁣🁤🁫🁥🁬🁳🁦🁭🁴🁻🁧🁮🁵🁼🂃🁨🁯🁶🁽🂊🂋🁩🁰🁷🁾🂅🂌🂓",base32:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",zBase32:"ybndrfg8ejkmcpqxot1uwisza345h769",crock32:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",base32Hex:"0123456789ABCDEFGHIJKLMNOPQRSTUV",base36:"0123456789abcdefghijklmnopqrstuvwxyz",mahjongBase43:"🀑🀒🀓🀔🀕🀖🀗🀘🀙🀚🀛🀜🀝🀞🀟🀠🀡🀇🀈🀉🀊🀋🀌🀍🀎🀏🀀🀁🀂🀃🀄︎🀅🀆🀐🀢🀣🀤🀥🀦🀧🀨🀩🀪",cards56:"🂡🂢🂣🂤🂥🂦🂧🂨🂩🂪🂫🂬🂭🂮🂱🂲🂳🂴🂵🂶🂷🂸🂹🂺🂻🂼🂽🂾🃁🃂🃃🃄🃅🃆🃇🃈🃉🃊🃋🃌🃍🃎🃑🃒🃓🃔🃕🃖🃗🃘🃙🃝🃞",base58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",base62:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",base64:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@",cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"},a=function(e){var t=0;return{generate:function(){return""+(e||"")+t++}}};let n=e=>crypto.getRandomValues(new Uint8Array(e));var o=function(e,t,a){void 0===e&&(e=r.base64),void 0===t&&(t=21);var o=((e,t)=>((e,t,r)=>{let a=(2<<Math.log(e.length-1)/Math.LN2)-1,n=-~(1.6*a*t/e.length);return()=>{let o="";for(;;){let i=r(n),s=n;for(;s--;)if(o+=e[i[s]&a]||"",o.length===t)return o}}})(e,t,n))(e,t);return{generate:function(){return a?a+o():o()}}},i=require("unist-util-visit"),s={generator:"counter",alphabet:r.base58,prefix:void 0};e.alphabets=r,e.counterIDGenerator=a,e.gramIdentityPlugin=function(e){var r=t({},s,e);return function(e){var t;switch(r.generator){case"nanoid":t=o(r.alphabet,21,r.prefix);break;case"counter":default:t=a(r.prefix)}i(e,(function(e){var r;(r=e).type&&"path"===r.type&&(e.id=e.id||t.generate())}))}},e.nanoidGenerator=o,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=gram-identity.umd.production.min.js.map
{
"name": "@gram-data/gram-identity",
"description": "identity generators for gram data graphs",
"keywords": [

@@ -8,3 +9,3 @@ "graph",

],
"version": "0.3.3",
"version": "0.3.4",
"license": "MIT",

@@ -54,9 +55,9 @@ "repository": {

"devDependencies": {
"@gram-data/gram-parse": "^0.3.3",
"@types/jest": "^26.0.15",
"@gram-data/gram-parse": "^0.3.4",
"@types/jest": "^26.0.18",
"@types/shortid": "^0.0.29",
"@types/unist": "^2.0.3",
"@typescript-eslint/parser": "^4.8.2",
"husky": "^4.3.0",
"npm-check-updates": "^10.2.2",
"@typescript-eslint/parser": "^4.9.1",
"husky": "^4.3.5",
"npm-check-updates": "^10.2.3",
"npm-run-all": "^4.1.5",

@@ -72,7 +73,7 @@ "serve": "^11.3.2",

"dependencies": {
"@gram-data/gram-ast": "^0.3.2",
"nanoid": "^3.1.18",
"@gram-data/gram-ast": "^0.3.4",
"nanoid": "^3.1.20",
"unified": "^9.2.0",
"unist-util-visit": "^2.0.3",
"vfile": "^4.2.0"
"vfile": "^4.2.1"
},

@@ -82,3 +83,3 @@ "publishConfig": {

},
"gitHead": "4968a0ac1569f0bab127c1c991ccf5314e306670"
"gitHead": "27de40df779bc903e8873563db12f7db477e4ad3"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc