@octokit/request-error
Advanced tools
Comparing version 6.1.0 to 6.1.1
{ | ||
"name": "@octokit/request-error", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"publishConfig": { | ||
@@ -40,3 +40,2 @@ "access": "public", | ||
], | ||
"main": "./dist-src/index.js", | ||
"types": "./dist-types/index.d.ts", | ||
@@ -46,3 +45,4 @@ "exports": { | ||
"types": "./dist-types/index.d.ts", | ||
"import": "./dist-src/index.js" | ||
"import": "./dist-src/index.js", | ||
"default": "./dist-src/index.js" | ||
} | ||
@@ -49,0 +49,0 @@ }, |
@@ -38,2 +38,8 @@ # http-error.js | ||
> [!IMPORTANT] | ||
> As we use [conditional exports](https://nodejs.org/api/packages.html#conditional-exports), you will need to adapt your `tsconfig.json` by setting `"moduleResolution": "node16", "module": "node16"`. | ||
> | ||
> See the TypeScript docs on [package.json "exports"](https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports).<br> | ||
> See this [helpful guide on transitioning to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) from [@sindresorhus](https://github.com/sindresorhus) | ||
```js | ||
@@ -40,0 +46,0 @@ const error = new RequestError("Oops", 500, { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6345
94