@gram-data/gram-identity
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -83,4 +83,2 @@ 'use strict'; | ||
module.exports = gramIdentityPlugin; | ||
exports.alphabets = alphabets; | ||
@@ -87,0 +85,0 @@ exports.gramIdentityPlugin = gramIdentityPlugin; |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gram-data/gram-ast");function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e}).apply(this,arguments)}var a=require("shortid"),t={base2:"01",base8:"01234567",base10:"0123456789",base11:"0123456789a",base16:"0123456789abcdef",base32:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",zBase32:"ybndrfg8ejkmcpqxot1uwisza345h769",crock32:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",base32Hex:"0123456789ABCDEFGHIJKLMNOPQRSTUV",base36:"0123456789abcdefghijklmnopqrstuvwxyz",base58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",base62:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",base64:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@"};a.characters(t.base64);var s=a.generate,i=require("unist-util-visit"),n={kind:"numeric"},o=function(a){void 0===a&&(a=n);var t=r({},n,a);return function(r){var a=0;i(r,(function(r){if(e.isGramPathlike(r))switch(t.kind){case"numeric":r.id=r.id||""+a++;break;case"shortid":r.id=r.id||s()}}))}};module.exports=o,exports.alphabets=t,exports.gramIdentityPlugin=o,exports.shortID=s; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gram-data/gram-ast");function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e}).apply(this,arguments)}var a=require("shortid"),t={base2:"01",base8:"01234567",base10:"0123456789",base11:"0123456789a",base16:"0123456789abcdef",base32:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",zBase32:"ybndrfg8ejkmcpqxot1uwisza345h769",crock32:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",base32Hex:"0123456789ABCDEFGHIJKLMNOPQRSTUV",base36:"0123456789abcdefghijklmnopqrstuvwxyz",base58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",base62:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",base64:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@"};a.characters(t.base64);var s=a.generate,i=require("unist-util-visit"),n={kind:"numeric"};exports.alphabets=t,exports.gramIdentityPlugin=function(a){void 0===a&&(a=n);var t=r({},n,a);return function(r){var a=0;i(r,(function(r){if(e.isGramPathlike(r))switch(t.kind){case"numeric":r.id=r.id||""+a++;break;case"shortid":r.id=r.id||s()}}))}},exports.shortID=s; | ||
//# sourceMappingURL=gram-identity.cjs.production.min.js.map |
@@ -79,5 +79,3 @@ import { isGramPathlike } from '@gram-data/gram-ast'; | ||
module.exports = gramIdentityPlugin; | ||
export { alphabets, gramIdentityPlugin, shortID }; | ||
//# sourceMappingURL=gram-identity.esm.js.map |
@@ -164,4 +164,2 @@ (function (global, factory) { | ||
module.exports = gramIdentityPlugin; | ||
exports.alphabets = alphabets; | ||
@@ -168,0 +166,0 @@ exports.gramIdentityPlugin = gramIdentityPlugin; |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(((e=e||self).gram=e.gram||{},e.gram.identity={}))}(this,(function(e){"use strict";function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var t=function(e){return!!e.type&&"path"===e.type},n=function(e){return t(e)&&e.children&&0===e.children.length&&"ø"!==e.id},i=require("shortid"),a={base2:"01",base8:"01234567",base10:"0123456789",base11:"0123456789a",base16:"0123456789abcdef",base32:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",zBase32:"ybndrfg8ejkmcpqxot1uwisza345h769",crock32:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",base32Hex:"0123456789ABCDEFGHIJKLMNOPQRSTUV",base36:"0123456789abcdefghijklmnopqrstuvwxyz",base58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",base62:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",base64:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@"};i.characters(a.base64);var o=i.generate,s=require("unist-util-visit"),u={kind:"numeric"},c=function(e){void 0===e&&(e=u);var i=r({},u,e);return function(e){var r=0;s(e,(function(e){if(t(a=e)||function(e){return t(e)&&void 0===e.children&&"ø"===e.id}(a)||n(a)||function(e){return t(e)&&void 0!==e.relation&&"pair"!==e.relation&&void 0!==e.children&&e.children.every((function(e){return n(e)}))}(a)||function(e){return!!e.type&&"seq"===e.type}(a))switch(i.kind){case"numeric":e.id=e.id||""+r++;break;case"shortid":e.id=e.id||o()}var a}))}};module.exports=c,e.alphabets=a,e.gramIdentityPlugin=c,e.shortID=o,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e=e||self).gram=e.gram||{},e.gram.identity={}))}(this,(function(e){"use strict";function n(){return(n=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e}).apply(this,arguments)}var r=function(e){return!!e.type&&"path"===e.type},t=function(e){return r(e)&&e.children&&0===e.children.length&&"ø"!==e.id},i=require("shortid"),a={base2:"01",base8:"01234567",base10:"0123456789",base11:"0123456789a",base16:"0123456789abcdef",base32:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",zBase32:"ybndrfg8ejkmcpqxot1uwisza345h769",crock32:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",base32Hex:"0123456789ABCDEFGHIJKLMNOPQRSTUV",base36:"0123456789abcdefghijklmnopqrstuvwxyz",base58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",base62:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",base64:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@"};i.characters(a.base64);var o=i.generate,s=require("unist-util-visit"),c={kind:"numeric"};e.alphabets=a,e.gramIdentityPlugin=function(e){void 0===e&&(e=c);var i=n({},c,e);return function(e){var n=0;s(e,(function(e){if(r(a=e)||function(e){return r(e)&&void 0===e.children&&"ø"===e.id}(a)||t(a)||function(e){return r(e)&&void 0!==e.relation&&"pair"!==e.relation&&void 0!==e.children&&e.children.every((function(e){return t(e)}))}(a)||function(e){return!!e.type&&"seq"===e.type}(a))switch(i.kind){case"numeric":e.id=e.id||""+n++;break;case"shortid":e.id=e.id||o()}var a}))}},e.shortID=o,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=gram-identity.umd.production.min.js.map |
@@ -8,4 +8,9 @@ { | ||
], | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/gram-data/gram-js.git" | ||
}, | ||
"homepage": "https://github.com/gram-data/gram-js/tree/main/packages/gram-identity#readme", | ||
"main": "dist/index.js", | ||
@@ -22,3 +27,3 @@ "typings": "dist/index.d.ts", | ||
"start": "tsdx watch", | ||
"build": "tsdx build --format cjs,esm,umd", | ||
"build": "tsdx build --format umd,esm,cjs --tsconfig tsconfig.build.json", | ||
"test": "tsdx test", | ||
@@ -30,3 +35,5 @@ "test:watch": "tsdx test --watch", | ||
"demo": "serve ./public/", | ||
"prepare": "npm run build" | ||
"prepare": "npm run build", | ||
"update": "ncu -u", | ||
"update:check": "ncu" | ||
}, | ||
@@ -47,22 +54,24 @@ "husky": { | ||
"devDependencies": { | ||
"@gram-data/gram-parse": "^2.0.2", | ||
"@types/jest": "^26.0.4", | ||
"@gram-data/gram-parse": "^0.2.7", | ||
"@types/jest": "^26.0.15", | ||
"@types/shortid": "^0.0.29", | ||
"@types/unist": "^2.0.3", | ||
"@typescript-eslint/parser": "^3.6.1", | ||
"husky": "^4.2.5", | ||
"@typescript-eslint/parser": "^4.6.0", | ||
"husky": "^4.3.0", | ||
"npm-check-updates": "^9.2.3", | ||
"npm-run-all": "^4.1.5", | ||
"serve": "^11.3.2", | ||
"shx": "^0.3.2", | ||
"tsdx": "^0.13.2", | ||
"tslib": "^2.0.0", | ||
"typescript": "^3.9.7", | ||
"unist-util-inspect": "^6.0.0" | ||
"shx": "^0.3.3", | ||
"tsdx": "^0.14.1", | ||
"tslib": "^2.0.3", | ||
"typedoc": "^0.19.2", | ||
"typescript": "^4.0.5", | ||
"unist-util-inspect": "^6.0.1" | ||
}, | ||
"dependencies": { | ||
"@gram-data/gram-ast": "^0.2.6", | ||
"shortid": "^2.2.15", | ||
"unified": "^9.0.0", | ||
"@gram-data/gram-ast": "^0.2.7", | ||
"shortid": "^2.2.16", | ||
"unified": "^9.2.0", | ||
"unist-util-visit": "^2.0.3", | ||
"vfile": "^4.1.1" | ||
"vfile": "^4.2.0" | ||
}, | ||
@@ -72,3 +81,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "0e76e336c21d916b2a79c4425b98578e645aa2c2" | ||
"gitHead": "68f323250363f0ab629388565880339d5c94ed5e" | ||
} |
@@ -6,3 +6,1 @@ import gramIdentityPlugin from './gram-identity-plugin'; | ||
export { gramIdentityPlugin }; | ||
module.exports = gramIdentityPlugin; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
35045
15
384
Updated@gram-data/gram-ast@^0.2.7
Updatedshortid@^2.2.16
Updatedunified@^9.2.0
Updatedvfile@^4.2.0