Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97070f6c1d
|
No files matched your search
@@ -1,2 +1,6 @@
|
||||
testoutput.txt
|
||||
npm-debug.log
|
||||
|
||||
lib/
|
||||
audit.json
|
||||
node_modules/
|
||||
@@ -0,0 +1,24 @@
|
||||
/** @type {import('jest').Config} */
|
||||
module.exports = {
|
||||
clearMocks: true,
|
||||
moduleFileExtensions: ['js', 'ts'],
|
||||
testEnvironment: 'node',
|
||||
roots: ['<rootDir>/tests'],
|
||||
testMatch: ['**/*.test.ts'],
|
||||
moduleNameMapper: {
|
||||
'^(\\.{1,2}/.*)\\.js$': '$1'
|
||||
},
|
||||
transform: {
|
||||
'^.+\\.(ts|js)$': ['ts-jest', {
|
||||
diagnostics: {warnOnly: true},
|
||||
tsconfig: {
|
||||
allowJs: true,
|
||||
isolatedModules: true,
|
||||
esModuleInterop: true,
|
||||
module: 'commonjs',
|
||||
moduleResolution: 'node'
|
||||
}
|
||||
}]
|
||||
},
|
||||
verbose: true
|
||||
}
|
||||
Generated
+5393
-1
File diff suppressed because it is too large.
Load diff
+14
-11
@@ -7,7 +7,7 @@
|
||||
"actions",
|
||||
"http"
|
||||
],
|
||||
"homepage": "https://github.com/actions/toolkit/tree/main/packages/http-client",
|
||||
"homepage": "https://git.levk.dev/actions/http-client",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
@@ -21,18 +21,18 @@
|
||||
"types": "./lib/auth.d.ts",
|
||||
"import": "./lib/auth.js"
|
||||
},
|
||||
"./lib/proxy": {
|
||||
"types": "./lib/proxy.d.ts",
|
||||
"./lib/proxy": {
|
||||
"types": "./lib/proxy.d.ts",
|
||||
"import": "./lib/proxy.js"
|
||||
},
|
||||
"./lib/interfaces": {
|
||||
"types": "./lib/interfaces.d.ts",
|
||||
"./lib/interfaces": {
|
||||
"types": "./lib/interfaces.d.ts",
|
||||
"import": "./lib/interfaces.js"
|
||||
}
|
||||
},
|
||||
"directories": {
|
||||
"lib": "lib",
|
||||
"test": "__tests__"
|
||||
"test": "tests"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
@@ -43,25 +43,28 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/actions/toolkit.git",
|
||||
"directory": "packages/http-client"
|
||||
"url": "https://git.levk.dev/actions/http-client.git"
|
||||
},
|
||||
"scripts": {
|
||||
"audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json",
|
||||
"test": "echo \"Error: run tests from root\" && exit 1",
|
||||
"test": "jest",
|
||||
"build": "tsc",
|
||||
"format": "prettier --write **/*.ts",
|
||||
"format-check": "prettier --check **/*.ts",
|
||||
"tsc": "tsc"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/actions/toolkit/issues"
|
||||
"url": "https://git.levk.dev/actions/http-client/issues"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.4",
|
||||
"@types/node": "24.1.0",
|
||||
"@types/proxy": "^1.0.1",
|
||||
"@types/tunnel": "0.0.3",
|
||||
"jest": "^29.6.4",
|
||||
"proxy": "^2.1.1",
|
||||
"@types/proxy": "^1.0.1"
|
||||
"ts-jest": "^29.1.1",
|
||||
"typescript": "^5.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"tunnel": "^0.0.6",
|
||||
|
||||
@@ -30,6 +30,7 @@ export enum HttpCodes {
|
||||
RequestTimeout = 408,
|
||||
Conflict = 409,
|
||||
Gone = 410,
|
||||
PayloadTooLarge = 413,
|
||||
TooManyRequests = 429,
|
||||
InternalServerError = 500,
|
||||
NotImplemented = 501,
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+15
-4
@@ -1,13 +1,24 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
"strict": true,
|
||||
"declaration": true,
|
||||
"target": "es6",
|
||||
"skipLibCheck": true,
|
||||
"sourceMap": true,
|
||||
"noImplicitAny": false,
|
||||
"useUnknownInCatchVariables": false,
|
||||
"outDir": "./lib",
|
||||
"rootDir": "./src",
|
||||
"module": "node16",
|
||||
"moduleResolution": "node16",
|
||||
"declaration": true
|
||||
"moduleResolution": "node16"
|
||||
},
|
||||
"include": [
|
||||
"./src"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/*.test.ts",
|
||||
"**/__mocks__/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user