Comparing version 3.3.4 to 3.3.5
@@ -34,2 +34,2 @@ let random = async bytes => crypto.getRandomValues(new Uint8Array(bytes)) | ||
} | ||
export { nanoid, customAlphabet, random } | ||
module.exports = { nanoid, customAlphabet, random } |
@@ -1,3 +0,3 @@ | ||
import crypto from 'crypto' | ||
import { urlAlphabet } from '../url-alphabet/index.js' | ||
let crypto = require('crypto') | ||
let { urlAlphabet } = require('../url-alphabet') | ||
let random = bytes => | ||
@@ -35,2 +35,2 @@ new Promise((resolve, reject) => { | ||
}) | ||
export { nanoid, customAlphabet, random } | ||
module.exports = { nanoid, customAlphabet, random } |
@@ -1,3 +0,3 @@ | ||
import { getRandomBytesAsync } from 'expo-random' | ||
import { urlAlphabet } from '../url-alphabet/index.js' | ||
let { getRandomBytesAsync } = require('expo-random') | ||
let { urlAlphabet } = require('../url-alphabet') | ||
let random = getRandomBytesAsync | ||
@@ -26,2 +26,2 @@ let customAlphabet = (alphabet, defaultSize = 21) => { | ||
}) | ||
export { nanoid, customAlphabet, random } | ||
module.exports = { nanoid, customAlphabet, random } |
@@ -1,2 +0,2 @@ | ||
import { urlAlphabet } from './url-alphabet/index.js' | ||
let { urlAlphabet } = require('./url-alphabet') | ||
let random = bytes => crypto.getRandomValues(new Uint8Array(bytes)) | ||
@@ -34,2 +34,2 @@ let customRandom = (alphabet, defaultSize, getRandom) => { | ||
}, '') | ||
export { nanoid, customAlphabet, customRandom, urlAlphabet, random } | ||
module.exports = { nanoid, customAlphabet, customRandom, urlAlphabet, random } |
@@ -1,3 +0,3 @@ | ||
import crypto from 'crypto' | ||
import { urlAlphabet } from './url-alphabet/index.js' | ||
let crypto = require('crypto') | ||
let { urlAlphabet } = require('./url-alphabet') | ||
const POOL_SIZE_MULTIPLIER = 128 | ||
@@ -45,2 +45,2 @@ let pool, poolOffset | ||
} | ||
export { nanoid, customAlphabet, customRandom, urlAlphabet, random } | ||
module.exports = { nanoid, customAlphabet, customRandom, urlAlphabet, random } |
@@ -21,2 +21,2 @@ let urlAlphabet = | ||
} | ||
export { nanoid, customAlphabet } | ||
module.exports = { nanoid, customAlphabet } |
{ | ||
"name": "nanoid", | ||
"version": "3.3.4", | ||
"version": "3.3.5", | ||
"description": "A tiny (116 bytes), secure URL-friendly unique string ID generator", | ||
@@ -14,2 +14,8 @@ "keywords": [ | ||
}, | ||
"funding": [ | ||
{ | ||
"type": "github", | ||
"url": "https://github.com/sponsors/ai" | ||
} | ||
], | ||
"author": "Andrey Sitnik <andrey@sitnik.ru>", | ||
@@ -21,42 +27,10 @@ "license": "MIT", | ||
"./async/index.js": "./async/index.browser.js", | ||
"./async/index.cjs": "./async/index.browser.cjs", | ||
"./index.cjs": "./index.browser.cjs" | ||
"./async/index.cjs": "./async/index.browser.cjs" | ||
}, | ||
"react-native": "index.js", | ||
"react-native": { | ||
"./async/index.js": "./async/index.native.js" | ||
}, | ||
"bin": "./bin/nanoid.cjs", | ||
"sideEffects": false, | ||
"types": "./index.d.ts", | ||
"type": "module", | ||
"main": "index.cjs", | ||
"module": "index.js", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"browser": "./index.browser.js", | ||
"require": "./index.cjs", | ||
"import": "./index.js", | ||
"default": "./index.js" | ||
}, | ||
"./index.d.ts": "./index.d.ts", | ||
"./package.json": "./package.json", | ||
"./async/package.json": "./async/package.json", | ||
"./async": { | ||
"browser": "./async/index.browser.js", | ||
"require": "./async/index.cjs", | ||
"import": "./async/index.js", | ||
"default": "./async/index.js" | ||
}, | ||
"./non-secure/package.json": "./non-secure/package.json", | ||
"./non-secure": { | ||
"require": "./non-secure/index.cjs", | ||
"import": "./non-secure/index.js", | ||
"default": "./non-secure/index.js" | ||
}, | ||
"./url-alphabet/package.json": "./url-alphabet/package.json", | ||
"./url-alphabet": { | ||
"require": "./url-alphabet/index.cjs", | ||
"import": "./url-alphabet/index.js", | ||
"default": "./url-alphabet/index.js" | ||
} | ||
} | ||
} | ||
"types": "./index.d.ts" | ||
} |
@@ -39,2 +39,2 @@ # Nano ID | ||
## Docs | ||
Read **[full docs](https://github.com/ai/nanoid#readme)** on GitHub. | ||
Read full docs **[here](https://github.com/ai/nanoid#readme)**. |
let urlAlphabet = | ||
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict' | ||
export { urlAlphabet } | ||
module.exports = { urlAlphabet } |
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
15279
15
417
No