Comparing version 3.18.1 to 3.19.0
{ | ||
"name": "urllib", | ||
"version": "3.18.1", | ||
"version": "3.19.0", | ||
"publishConfig": { | ||
@@ -22,17 +22,24 @@ "tag": "latest" | ||
"type": "module", | ||
"tshy": { | ||
"exports": { | ||
".": "./src/index.ts", | ||
"./package.json": "./package.json" | ||
} | ||
}, | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./src/esm/index.d.ts", | ||
"default": "./src/esm/index.js" | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./src/cjs/index.d.ts", | ||
"default": "./src/cjs/index.js" | ||
"types": "./dist/commonjs/index.d.ts", | ||
"default": "./dist/commonjs/index.js" | ||
} | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"types": "./src/esm/index.d.ts", | ||
"main": "./src/cjs/index.js", | ||
"typings": "./dist/commonjs/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"src" | ||
@@ -47,6 +54,4 @@ ], | ||
"prebuild": "npm run clean", | ||
"build": "tsc --version && npm run build:cjs && npm run build:esm && npm run build:version", | ||
"postbuild": "rm -rf src/*.tsbuildinfo", | ||
"build:cjs": "tsc -p ./tsconfig.build.cjs.json", | ||
"build:esm": "tsc -p ./tsconfig.build.esm.json && node ./scripts/esm_import_fix.js", | ||
"build": "tsc --version && tshy && npm run build:version", | ||
"postbuild": "rm -rf *.tsbuildinfo", | ||
"build:version": "node ./scripts/replace_urllib_version.js", | ||
@@ -57,11 +62,11 @@ "build:cjs:test": "cd test/cjs && rm -rf node_modules && npm link ../.. && node index.js", | ||
"build:test": "npm run build && npm run build:cjs:test && npm run build:esm:test && npm run build:mts:test && npm run test-tsc", | ||
"test-tsc": "npm run test-tsc:cjs", | ||
"test-tsc:cjs": "tsc -p ./test/fixtures/ts/tsconfig.json", | ||
"test-tsc:esm": "tsc -p ./test/fixtures/ts-esm/tsconfig.json", | ||
"test-tsc": "npm run test-tsc:cjs && npm run test-tsc:esm", | ||
"test-tsc:cjs": "cd test/fixtures/ts && rm -rf node_modules && npm link ../../.. && npm run build", | ||
"test-tsc:esm": "cd test/fixtures/ts-esm && rm -rf node_modules && npm link ../../.. && npm run build", | ||
"test": "npm run lint && vitest run", | ||
"test-keepalive": "cross-env TEST_KEEPALIVE_COUNT=50 vitest run --test-timeout 180000 keep-alive-header.test.ts", | ||
"cov": "vitest run --coverage", | ||
"ci": "npm run lint && npm run cov && npm run build:test", | ||
"ci": "npm run lint && npm run cov && node scripts/build_test.js", | ||
"contributor": "git-contributor", | ||
"clean": "rm -rf src/*.tsbuildinfo src/cjs/*.ts src/cjs/*.js src/esm/*.ts src/esm/*.js", | ||
"clean": "rm -rf dist", | ||
"prepublishOnly": "npm run build" | ||
@@ -82,2 +87,4 @@ }, | ||
"devDependencies": { | ||
"@tsconfig/node18": "^18.2.1", | ||
"@tsconfig/strictest": "^2.0.2", | ||
"@types/busboy": "^1.5.0", | ||
@@ -92,4 +99,2 @@ "@types/default-user-agent": "^1.0.0", | ||
"@vitest/coverage-v8": "^0.32.0", | ||
"@tsconfig/node18": "^18.2.1", | ||
"@tsconfig/strictest": "^2.0.2", | ||
"busboy": "^1.6.0", | ||
@@ -104,2 +109,3 @@ "cross-env": "^7.0.3", | ||
"tar-stream": "^2.2.0", | ||
"tshy": "^1.0.0-3", | ||
"typescript": "^5.0.4", | ||
@@ -106,0 +112,0 @@ "vitest": "^0.32.0" |
@@ -6,4 +6,4 @@ import diagnosticsChannel from 'node:diagnostics_channel'; | ||
import { DiagnosticsChannel } from 'undici'; | ||
import symbols from './symbols'; | ||
import { globalId, performanceTime } from './utils'; | ||
import symbols from './symbols.js'; | ||
import { globalId, performanceTime } from './utils.js'; | ||
@@ -10,0 +10,0 @@ const debug = debuglog('urllib:DiagnosticsChannel'); |
@@ -33,8 +33,8 @@ import diagnosticsChannel from 'node:diagnostics_channel'; | ||
import FormStream from 'formstream'; | ||
import { HttpAgent, CheckAddressFunction } from './HttpAgent'; | ||
import { RequestURL, RequestOptions, HttpMethod, RequestMeta } from './Request'; | ||
import { RawResponseWithMeta, HttpClientResponse, SocketInfo } from './Response'; | ||
import { parseJSON, sleep, digestAuthHeader, globalId, performanceTime, isReadable } from './utils'; | ||
import symbols from './symbols'; | ||
import { initDiagnosticsChannel } from './diagnosticsChannel'; | ||
import { HttpAgent, CheckAddressFunction } from './HttpAgent.js'; | ||
import { RequestURL, RequestOptions, HttpMethod, RequestMeta } from './Request.js'; | ||
import { RawResponseWithMeta, HttpClientResponse, SocketInfo } from './Response.js'; | ||
import { parseJSON, sleep, digestAuthHeader, globalId, performanceTime, isReadable } from './utils.js'; | ||
import symbols from './symbols.js'; | ||
import { initDiagnosticsChannel } from './diagnosticsChannel.js'; | ||
@@ -41,0 +41,0 @@ type Exists<T> = T extends undefined ? never : T; |
import LRU from 'ylru'; | ||
import { HttpClient, HEADER_USER_AGENT } from './HttpClient'; | ||
import { RequestOptions, RequestURL } from './Request'; | ||
import { HttpClient, HEADER_USER_AGENT } from './HttpClient.js'; | ||
import { RequestOptions, RequestURL } from './Request.js'; | ||
@@ -42,3 +42,3 @@ let httpclient: HttpClient; | ||
RequestDiagnosticsMessage, ResponseDiagnosticsMessage, | ||
} from './HttpClient'; | ||
} from './HttpClient.js'; | ||
// RequestOptions2 is keep compatible with urlib@2 RequestOptions2 | ||
@@ -48,5 +48,5 @@ export { | ||
FixJSONCtlCharsHandler, FixJSONCtlChars, | ||
} from './Request'; | ||
} from './Request.js'; | ||
export { SocketInfo, Timing, RawResponseWithMeta, HttpClientResponse } from './Response'; | ||
export { SocketInfo, Timing, RawResponseWithMeta, HttpClientResponse } from './Response.js'; | ||
@@ -53,0 +53,0 @@ export default { |
@@ -6,3 +6,3 @@ import { Readable, Writable } from 'node:stream'; | ||
HttpClientResponse, | ||
} from './Response'; | ||
} from './Response.js'; | ||
@@ -9,0 +9,0 @@ export type HttpMethod = Dispatcher.HttpMethod; |
import { randomBytes, createHash } from 'node:crypto'; | ||
import { Readable } from 'node:stream'; | ||
import { performance } from 'node:perf_hooks'; | ||
import { FixJSONCtlChars } from './Request'; | ||
import type { FixJSONCtlChars } from './Request.js'; | ||
@@ -6,0 +6,0 @@ const JSONCtlCharsMap = { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
193800
23
1