@octokit/endpoint
Advanced tools
Comparing version 9.0.4 to 10.0.0-beta.1
@@ -1,35 +0,9 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// pkg/dist-src/index.js | ||
var dist_src_exports = {}; | ||
__export(dist_src_exports, { | ||
endpoint: () => endpoint | ||
}); | ||
module.exports = __toCommonJS(dist_src_exports); | ||
// pkg/dist-src/defaults.js | ||
var import_universal_user_agent = require("universal-user-agent"); | ||
import { getUserAgent } from "universal-user-agent"; | ||
// pkg/dist-src/version.js | ||
var VERSION = "9.0.4"; | ||
var VERSION = "10.0.0-beta.1"; | ||
// pkg/dist-src/defaults.js | ||
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`; | ||
var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`; | ||
var DEFAULTS = { | ||
@@ -375,5 +349,4 @@ method: "GET", | ||
var endpoint = withDefaults(null, DEFAULTS); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
export { | ||
endpoint | ||
}); | ||
}; |
import { getUserAgent } from "universal-user-agent"; | ||
import { VERSION } from "./version"; | ||
import { VERSION } from "./version.js"; | ||
const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`; | ||
@@ -4,0 +4,0 @@ const DEFAULTS = { |
@@ -1,4 +0,4 @@ | ||
import { DEFAULTS } from "./defaults"; | ||
import { merge } from "./merge"; | ||
import { parse } from "./parse"; | ||
import { DEFAULTS } from "./defaults.js"; | ||
import { merge } from "./merge.js"; | ||
import { parse } from "./parse.js"; | ||
function endpointWithDefaults(defaults, route, options) { | ||
@@ -5,0 +5,0 @@ return parse(merge(defaults, route, options)); |
@@ -1,3 +0,3 @@ | ||
import { withDefaults } from "./with-defaults"; | ||
import { DEFAULTS } from "./defaults"; | ||
import { withDefaults } from "./with-defaults.js"; | ||
import { DEFAULTS } from "./defaults.js"; | ||
const endpoint = withDefaults(null, DEFAULTS); | ||
@@ -4,0 +4,0 @@ export { |
@@ -1,4 +0,4 @@ | ||
import { lowercaseKeys } from "./util/lowercase-keys"; | ||
import { mergeDeep } from "./util/merge-deep"; | ||
import { removeUndefinedProperties } from "./util/remove-undefined-properties"; | ||
import { lowercaseKeys } from "./util/lowercase-keys.js"; | ||
import { mergeDeep } from "./util/merge-deep.js"; | ||
import { removeUndefinedProperties } from "./util/remove-undefined-properties.js"; | ||
function merge(defaults, route, options) { | ||
@@ -5,0 +5,0 @@ if (typeof route === "string") { |
@@ -1,5 +0,5 @@ | ||
import { addQueryParameters } from "./util/add-query-parameters"; | ||
import { extractUrlVariableNames } from "./util/extract-url-variable-names"; | ||
import { omit } from "./util/omit"; | ||
import { parseUrl } from "./util/url-template"; | ||
import { addQueryParameters } from "./util/add-query-parameters.js"; | ||
import { extractUrlVariableNames } from "./util/extract-url-variable-names.js"; | ||
import { omit } from "./util/omit.js"; | ||
import { parseUrl } from "./util/url-template.js"; | ||
function parse(options) { | ||
@@ -6,0 +6,0 @@ let method = options.method.toUpperCase(); |
@@ -1,2 +0,2 @@ | ||
import { isPlainObject } from "./is-plain-object"; | ||
import { isPlainObject } from "./is-plain-object.js"; | ||
function mergeDeep(defaults, options) { | ||
@@ -3,0 +3,0 @@ const result = Object.assign({}, defaults); |
@@ -1,4 +0,4 @@ | ||
const VERSION = "9.0.4"; | ||
const VERSION = "10.0.0-beta.1"; | ||
export { | ||
VERSION | ||
}; |
@@ -1,4 +0,4 @@ | ||
import { endpointWithDefaults } from "./endpoint-with-defaults"; | ||
import { merge } from "./merge"; | ||
import { parse } from "./parse"; | ||
import { endpointWithDefaults } from "./endpoint-with-defaults.js"; | ||
import { merge } from "./merge.js"; | ||
import { parse } from "./parse.js"; | ||
function withDefaults(oldDefaults, newDefaults) { | ||
@@ -5,0 +5,0 @@ const DEFAULTS = merge(oldDefaults, newDefaults); |
import type { EndpointOptions, RequestParameters, Route } from "@octokit/types"; | ||
import { DEFAULTS } from "./defaults"; | ||
import { DEFAULTS } from "./defaults.js"; | ||
export declare function endpointWithDefaults(defaults: typeof DEFAULTS, route: Route | EndpointOptions, options?: RequestParameters): import("@octokit/types").RequestOptions; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "9.0.4"; | ||
export declare const VERSION = "10.0.0-beta.1"; |
@@ -5,3 +5,3 @@ // pkg/dist-src/defaults.js | ||
// pkg/dist-src/version.js | ||
var VERSION = "9.0.4"; | ||
var VERSION = "10.0.0-beta.1"; | ||
@@ -8,0 +8,0 @@ // pkg/dist-src/defaults.js |
{ | ||
"name": "@octokit/endpoint", | ||
"version": "9.0.4", | ||
"version": "10.0.0-beta.1", | ||
"type": "module", | ||
"publishConfig": { | ||
@@ -18,9 +19,10 @@ "access": "public" | ||
"devDependencies": { | ||
"@octokit/tsconfig": "^2.0.0", | ||
"@octokit/tsconfig": "^3.0.0", | ||
"@types/jest": "^29.0.0", | ||
"esbuild": "^0.19.0", | ||
"@types/node": "^20.10.0", | ||
"esbuild": "^0.20.0", | ||
"glob": "^10.2.7", | ||
"jest": "^29.0.0", | ||
"prettier": "3.1.0", | ||
"semantic-release": "^22.0.0", | ||
"prettier": "3.2.5", | ||
"semantic-release": "^23.0.0", | ||
"semantic-release-plugin-update-version-in-files": "^1.0.0", | ||
@@ -32,3 +34,3 @@ "ts-jest": "^29.0.0", | ||
"@octokit/types": "^12.0.0", | ||
"universal-user-agent": "^6.0.0" | ||
"universal-user-agent": "^7.0.2" | ||
}, | ||
@@ -42,7 +44,9 @@ "engines": { | ||
], | ||
"main": "dist-node/index.js", | ||
"browser": "dist-web/index.js", | ||
"types": "dist-types/index.d.ts", | ||
"module": "dist-src/index.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist-types/index.d.ts", | ||
"import": "./dist-src/index.js" | ||
} | ||
}, | ||
"sideEffects": false | ||
} |
@@ -51,4 +51,3 @@ # endpoint.js | ||
```js | ||
const { endpoint } = require("@octokit/endpoint"); | ||
// or: import { endpoint } from "@octokit/endpoint"; | ||
import { endpoint } from "@octokit/endpoint"; | ||
``` | ||
@@ -55,0 +54,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Yes
90809
11
1085
2
410
+ Addeduniversal-user-agent@7.0.2(transitive)
- Removeduniversal-user-agent@6.0.1(transitive)
Updateduniversal-user-agent@^7.0.2