urllib 3.14.1 → 3.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "urllib",
3
- "version": "3.14.1",
3
+ "version": "3.15.0",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },
@@ -42,10 +42,12 @@
42
42
  },
43
43
  "scripts": {
44
44
  "lint": "eslint src test --ext .ts --cache",
45
- "build": "npm run clean && npm run build:dist",
45
+ "prebuild": "npm run clean",
46
+ "build": "tsc --version && npm run build:cjs && npm run build:esm && npm run build:version",
47
+ "postbuild": "rm -rf src/*.tsbuildinfo",
46
48
  "build:cjs": "tsc -p ./tsconfig.build.cjs.json",
47
49
  "build:esm": "tsc -p ./tsconfig.build.esm.json && node ./scripts/esm_import_fix.js",
48
- "build:dist": "tsc --version && npm run build:cjs && npm run build:esm",
50
+ "build:version": "node ./scripts/replace_urllib_version.js",
49
51
  "build:cjs:test": "cd test/cjs && rm -rf node_modules && npm link ../.. && node index.js",
50
52
  "build:esm:test": "cd test/esm && rm -rf node_modules && npm link ../.. && node index.js",
51
53
  "build:test": "npm run build && npm run build:cjs:test && npm run build:esm:test && npm run test-tsc",
@@ -55,7 +57,7 @@
55
57
  "ci": "npm run lint && npm run cov && npm run build:test",
56
58
  "contributor": "git-contributor",
57
59
  "clean": "rm -rf src/*.tsbuildinfo src/cjs/*.ts src/cjs/*.js src/esm/*.ts src/esm/*.js",
58
- "prepack": "npm run build && rm -rf src/*.tsbuildinfo"
60
+ "prepublishOnly": "npm run build"
59
61
  },
60
62
  "dependencies": {
61
63
  "default-user-agent": "^1.0.0",
package/src/HttpClient.ts CHANGED
@@ -121,7 +121,7 @@ class HttpClientRequestTimeoutError extends Error {
121
121
  }
122
122
  }
123
123
 
124
- export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.0.0');
124
+ export const HEADER_USER_AGENT = createUserAgent('node-urllib', 'VERSION');
125
125
 
126
126
  function getFileName(stream: Readable) {
127
127
  const filePath: string = (stream as any).path;
@@ -69,7 +69,7 @@ class HttpClientRequestTimeoutError extends Error {
69
69
  Error.captureStackTrace(this, this.constructor);
70
70
  }
71
71
  }
72
- exports.HEADER_USER_AGENT = (0, default_user_agent_1.default)('node-urllib', '3.0.0');
72
+ exports.HEADER_USER_AGENT = (0, default_user_agent_1.default)('node-urllib', '3.15.0');
73
73
  function getFileName(stream) {
74
74
  const filePath = stream.path;
75
75
  if (filePath) {
@@ -63,7 +63,7 @@ class HttpClientRequestTimeoutError extends Error {
63
63
  Error.captureStackTrace(this, this.constructor);
64
64
  }
65
65
  }
66
- export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.0.0');
66
+ export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.15.0');
67
67
  function getFileName(stream) {
68
68
  const filePath = stream.path;
69
69
  if (filePath) {