@metamask/base-controller
Advanced tools
| // Type definitions for compatibility with legacy TypeScript module resolution. | ||
| // Node16/NodeNext resolution uses the "exports" field in package.json, | ||
| // but legacy resolution needs explicit .d.ts files at the import path. | ||
| // Re-export all types and values from the CommonJS build | ||
| // eslint-disable-next-line import-x/no-useless-path-segments, import-x/extensions | ||
| export * from './dist/next/index.cjs'; |
+10
-1
@@ -10,2 +10,10 @@ # Changelog | ||
| ## [8.4.2] | ||
| ### Fixed | ||
| - Fix TypeScript module resolution for `/next` subpath export with legacy resolution mode ([#6915](https://github.com/MetaMask/core/pull/6915)) | ||
| - Added `next.d.ts` file to enable imports like `import { BaseController } from '@metamask/base-controller/next'` to work with both legacy TypeScript module resolution and Node16/NodeNext resolution modes | ||
| - Previously, this import pattern only worked with Node16/NodeNext resolution which uses the `exports` field in package.json | ||
| ## [8.4.1] | ||
@@ -390,3 +398,4 @@ | ||
| [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/base-controller@8.4.1...HEAD | ||
| [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/base-controller@8.4.2...HEAD | ||
| [8.4.2]: https://github.com/MetaMask/core/compare/@metamask/base-controller@8.4.1...@metamask/base-controller@8.4.2 | ||
| [8.4.1]: https://github.com/MetaMask/core/compare/@metamask/base-controller@8.4.0...@metamask/base-controller@8.4.1 | ||
@@ -393,0 +402,0 @@ [8.4.0]: https://github.com/MetaMask/core/compare/@metamask/base-controller@8.3.0...@metamask/base-controller@8.4.0 |
+3
-2
| { | ||
| "name": "@metamask/base-controller", | ||
| "version": "8.4.1", | ||
| "version": "8.4.2", | ||
| "description": "Provides scaffolding for controllers as well a communication system for all controllers", | ||
@@ -45,3 +45,4 @@ "keywords": [ | ||
| "dist/", | ||
| "next.js" | ||
| "next.js", | ||
| "next.d.ts" | ||
| ], | ||
@@ -48,0 +49,0 @@ "scripts": { |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
413842
0.25%54
1.89%1789
0.34%