@octokit/plugin-rest-endpoint-methods
Advanced tools
Comparing version 13.2.1 to 13.2.2
@@ -126,2 +126,1 @@ import ENDPOINTS from "./generated/endpoints.js"; | ||
}; | ||
//# sourceMappingURL=endpoints-to-methods.js.map |
@@ -22,2 +22,1 @@ import { VERSION } from "./version.js"; | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,5 +0,4 @@ | ||
const VERSION = "13.2.1"; | ||
const VERSION = "13.2.2"; | ||
export { | ||
VERSION | ||
}; | ||
//# sourceMappingURL=version.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "13.2.1"; | ||
export declare const VERSION = "13.2.2"; |
{ | ||
"name": "@octokit/plugin-rest-endpoint-methods", | ||
"version": "13.2.1", | ||
"type": "module", | ||
"version": "13.2.2", | ||
"description": "Octokit plugin adding one method for all of api.github.com REST API endpoints", | ||
@@ -19,4 +18,4 @@ "repository": "github:octokit/plugin-rest-endpoint-methods.js", | ||
"devDependencies": { | ||
"@octokit/core": "^6.0.0", | ||
"@octokit/tsconfig": "^3.0.0", | ||
"@octokit/core": "^5.0.0", | ||
"@octokit/tsconfig": "^2.0.0", | ||
"@types/fetch-mock": "^7.3.1", | ||
@@ -45,3 +44,3 @@ "@types/jest": "^29.0.0", | ||
"peerDependencies": { | ||
"@octokit/core": ">=6" | ||
"@octokit/core": "^5" | ||
}, | ||
@@ -56,13 +55,10 @@ "publishConfig": { | ||
"files": [ | ||
"dist-*/**" | ||
"dist-*/**", | ||
"bin/**" | ||
], | ||
"types": "./dist-types/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist-src/index.js", | ||
"types": "./dist-types/index.d.ts", | ||
"default": "./dist-src/index.js" | ||
} | ||
}, | ||
"main": "dist-node/index.js", | ||
"browser": "dist-web/index.js", | ||
"types": "dist-types/index.d.ts", | ||
"module": "dist-src/index.js", | ||
"sideEffects": false | ||
} |
@@ -33,4 +33,6 @@ # plugin-rest-endpoint-methods.js | ||
```js | ||
import { Octokit } from "@octokit/core"; | ||
import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods"; | ||
const { Octokit } = require("@octokit/core"); | ||
const { | ||
restEndpointMethods, | ||
} = require("@octokit/plugin-rest-endpoint-methods"); | ||
``` | ||
@@ -54,8 +56,2 @@ | ||
> [!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) | ||
Parameter and response types for all endpoint methods exported as `{ RestEndpointMethodTypes }`. | ||
@@ -62,0 +58,0 @@ |
Sorry, the diff of this file is too big to display
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
1544254
20
22661
77
No