Skip to content

Commit

Permalink
chore: fix remaining issues for v11 release (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa authored Sep 5, 2024
1 parent 9e69599 commit a87be4b
Show file tree
Hide file tree
Showing 9 changed files with 2,152 additions and 1,496 deletions.
5 changes: 4 additions & 1 deletion examples/browser-esmodules/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ import {
// Import attribute syntax is still awaiting finalization. In the meantime we
// use dynamic import to allows to specifyg both "assert" and "with" clauses.
// See https://github.com/tc39/proposal-import-attributes
const pkg = await import('uuid/package.json', { assert: { type: 'json' }, with: { type: 'json' } });
const pkg = await import('./node_modules/uuid/package.json', {
assert: { type: 'json' },
with: { type: 'json' },
});

console.log('pkg', pkg);

Expand Down
12 changes: 6 additions & 6 deletions examples/browser-esmodules/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/node-esmodules/example.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ console.log('uuid.validate()', uuid.validate(MY_NAMESPACE));
console.log('uuid.version()', uuid.version(MY_NAMESPACE));

// Some tools like react-native need to introspect the package.json file
console.log('pkg.name', pkg.name);
console.log('pkg.name', pkg.default.name);
Loading

0 comments on commit a87be4b

Please sign in to comment.