@octokit/plugin-rest-endpoint-methods
Advanced tools
Comparing version
@@ -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.3.1"; | ||
const VERSION = "13.3.2-cjs.1"; | ||
export { | ||
VERSION | ||
}; | ||
//# sourceMappingURL=version.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "13.3.1"; | ||
export declare const VERSION = "13.3.2-cjs.1"; |
{ | ||
"name": "@octokit/plugin-rest-endpoint-methods", | ||
"version": "13.3.1", | ||
"type": "module", | ||
"version": "13.3.2-cjs.1", | ||
"description": "Octokit plugin adding one method for all of api.github.com REST API endpoints", | ||
@@ -19,13 +18,14 @@ "repository": "github:octokit/plugin-rest-endpoint-methods.js", | ||
"devDependencies": { | ||
"@octokit/core": "^6.0.0", | ||
"@octokit/tsconfig": "^4.0.0", | ||
"@types/node": "^22.0.0", | ||
"@vitest/coverage-v8": "^3.0.5", | ||
"camelcase": "^8.0.0", | ||
"esbuild": "^0.24.0", | ||
"@octokit/core": "^5.0.0", | ||
"@octokit/tsconfig": "^2.0.0", | ||
"@types/jest": "^29.0.0", | ||
"@types/node": "^20.0.0", | ||
"@types/sinon": "^17.0.0", | ||
"esbuild": "^0.25.0", | ||
"fetch-mock": "^11.0.0", | ||
"github-openapi-graphql-query": "^4.3.1", | ||
"glob": "^11.0.0", | ||
"prettier": "3.3.3", | ||
"semantic-release-plugin-update-version-in-files": "^1.0.0", | ||
"glob": "^10.0.0", | ||
"jest": "^29.0.0", | ||
"prettier": "3.5.2", | ||
"semantic-release-plugin-update-version-in-files": "^2.0.0", | ||
"sinon": "^19.0.0", | ||
@@ -35,6 +35,6 @@ "sort-keys": "^5.0.0", | ||
"typescript": "^5.0.0", | ||
"vitest": "^3.0.5" | ||
"ts-jest": "^29.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@octokit/core": ">=6" | ||
"@octokit/core": "^5" | ||
}, | ||
@@ -49,13 +49,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1624861
24.01%20
11.11%23946
22.79%17
6.25%2
100%77
-4.94%No
NaN