From 3b26f0a782c8560a16ea77248b50759cf93bc2a0 Mon Sep 17 00:00:00 2001 From: Robert Kieffer Date: Mon, 28 Oct 2024 07:37:31 -0700 Subject: [PATCH] Revert "fix: remove wrapper.mjs" This reverts commit 2a18871f00f6f9effa9f8afadd98278e6866112c. --- package.json | 5 +++-- wrapper.mjs | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 wrapper.mjs diff --git a/package.json b/package.json index 55f306f4..12ea33f0 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "node": { "module": "./dist/esm/index.js", "require": "./dist/cjs/index.js", - "import": "./dist/esm/index.js" + "import": "./wrapper.mjs" }, "browser": { "import": "./dist/esm-browser/index.js", @@ -49,7 +49,8 @@ "CONTRIBUTING.md", "LICENSE.md", "README.md", - "dist" + "dist", + "wrapper.mjs" ], "devDependencies": { "@babel/eslint-parser": "7.25.9", diff --git a/wrapper.mjs b/wrapper.mjs new file mode 100644 index 00000000..9c51f453 --- /dev/null +++ b/wrapper.mjs @@ -0,0 +1,15 @@ +import * as uuid from './dist/esm/index.js'; +export const v1 = uuid.v1; +export const v1ToV6 = uuid.v1ToV6; +export const v3 = uuid.v3; +export const v4 = uuid.v4; +export const v5 = uuid.v5; +export const v6 = uuid.v6; +export const v6ToV1 = uuid.v6ToV1; +export const v7 = uuid.v7; +export const NIL = uuid.NIL; +export const MAX = uuid.MAX; +export const version = uuid.version; +export const validate = uuid.validate; +export const stringify = uuid.stringify; +export const parse = uuid.parse;