Skip to content

Commit

Permalink
Revert "fix: remove wrapper.mjs"
Browse files Browse the repository at this point in the history
This reverts commit 2a18871.
  • Loading branch information
broofa committed Oct 28, 2024
1 parent 2a18871 commit 3b26f0a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -49,7 +49,8 @@
"CONTRIBUTING.md",
"LICENSE.md",
"README.md",
"dist"
"dist",
"wrapper.mjs"
],
"devDependencies": {
"@babel/eslint-parser": "7.25.9",
Expand Down
15 changes: 15 additions & 0 deletions wrapper.mjs
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 3b26f0a

Please sign in to comment.