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;