@allmaps/id
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
@@ -1,3 +0,3 @@ | ||
// https://allmaps.org v1.0.0-alpha.5 Copyright 2021 @nelsonic | ||
// https://allmaps.org v1.0.0-alpha.6 Copyright 2021 @nelsonic | ||
"use strict";function t(t,n=16){return t.replace(/[Il0oO=\/\+]/g,"").substring(0,n)}function n(t){return Array.isArray(t)?JSON.stringify(t.map((t=>n(t)))):"string"==typeof t?`"${t}"`:"object"==typeof t&&null!==t?Object.keys(t).sort().map((r=>`${r}:${n(t[r])}`)).join("|"):t}function r(t){return btoa(String.fromCharCode.apply(null,new Uint8Array(t)))}async function e(t){return await function(t){return crypto.subtle.digest("SHA-512",new TextEncoder("utf-8").encode(t))}(String(t)).then(r)}async function a(n,r){return t(await e(n),r)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createChecksum=async function(r,a){return t(await e(n(r)),a)},exports.createId=a,exports.createRandomId=async function(t){return await a(String(Math.random()),t)}; | ||
//# sourceMappingURL=web.js.map |
{ | ||
"name": "@allmaps/id", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"description": "IDs for Allmaps", | ||
"type": "module", | ||
"main": "dist/id.min.js", | ||
"module": "dist/id.mjs", | ||
"unpkg": "dist/id.min.js", | ||
"jsdelivr": "dist/id.min.js", | ||
"unpkg": "dist/allmaps-id.min.js", | ||
"jsdelivr": "dist/allmaps-id.min.js", | ||
"scripts": { | ||
@@ -55,4 +56,4 @@ "build": "rollup -c", | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=14" | ||
} | ||
} |
@@ -19,6 +19,6 @@ import nodeResolve from '@rollup/plugin-node-resolve' | ||
output: { | ||
file: `dist/${name}.mjs`, | ||
file: `dist/allmaps-${name}.mjs`, | ||
banner: copyright, | ||
format: 'esm', | ||
name, | ||
name: 'allmaps', | ||
exports: 'named', | ||
@@ -41,6 +41,6 @@ sourcemap: true, | ||
output: { | ||
file: `dist/${name}.min.js`, | ||
file: `dist/allmaps-${name}.min.js`, | ||
banner: copyright, | ||
format: 'umd', | ||
name, | ||
name: 'allmaps', | ||
esModule: false, | ||
@@ -47,0 +47,0 @@ exports: 'named', |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
24153
Yes