@omni-co/embed 0.3.18 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.random32ByteString = void 0;
4
- const nanoid = import("nanoid");
4
+ const nanoid_1 = require("nanoid");
5
5
  const humanReadableByteSpace = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
6
6
  // Generates a random 32 byte, human readable string.
7
7
  // Based on math at https://zelark.github.io/nano-id-cc/
@@ -9,7 +9,6 @@ const humanReadableByteSpace = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkl
9
9
  // 8,730,800,738,924,245T IDs, in order to have a 1% probability
10
10
  // of at least one collision.
11
11
  const random32ByteString = async () => {
12
- const { customAlphabet } = await nanoid;
13
- return customAlphabet(humanReadableByteSpace, 32)();
12
+ return (0, nanoid_1.customAlphabet)(humanReadableByteSpace, 32)();
14
13
  };
15
14
  exports.random32ByteString = random32ByteString;
@@ -1,4 +1,4 @@
1
- const nanoid = import("nanoid");
1
+ import { customAlphabet } from "nanoid";
2
2
  const humanReadableByteSpace = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
3
3
  // Generates a random 32 byte, human readable string.
4
4
  // Based on math at https://zelark.github.io/nano-id-cc/
@@ -6,6 +6,5 @@ const humanReadableByteSpace = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkl
6
6
  // 8,730,800,738,924,245T IDs, in order to have a 1% probability
7
7
  // of at least one collision.
8
8
  export const random32ByteString = async () => {
9
- const { customAlphabet } = await nanoid;
10
9
  return customAlphabet(humanReadableByteSpace, 32)();
11
10
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.18",
2
+ "version": "0.3.19",
3
3
  "license": "MIT",
4
4
  "name": "@omni-co/embed",
5
5
  "author": "Nate Agrin <nate@exploreomni.com>",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "base64url": "^3.0.1",
23
- "nanoid": "^5.0.2"
23
+ "nanoid": "3.3.7"
24
24
  },
25
25
  "engines": {
26
26
  "node": ">=16"