@zuplo/cli 7.12.6 → 7.12.7

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.
Files changed (36) hide show
  1. package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.d.ts +13 -1
  2. package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.d.ts.map +1 -1
  3. package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.js +101 -31
  4. package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.mjs +99 -32
  5. package/node_modules/@posthog/core/dist/index.d.ts +2 -2
  6. package/node_modules/@posthog/core/dist/index.d.ts.map +1 -1
  7. package/node_modules/@posthog/core/dist/index.js +17 -7
  8. package/node_modules/@posthog/core/dist/index.mjs +1 -1
  9. package/node_modules/@posthog/core/dist/posthog-core.d.ts.map +1 -1
  10. package/node_modules/@posthog/core/dist/posthog-core.js +1 -1
  11. package/node_modules/@posthog/core/dist/posthog-core.mjs +1 -1
  12. package/node_modules/@posthog/core/dist/types.d.ts +2 -0
  13. package/node_modules/@posthog/core/dist/types.d.ts.map +1 -1
  14. package/node_modules/@posthog/core/dist/types.js +1 -0
  15. package/node_modules/@posthog/core/dist/types.mjs +1 -0
  16. package/node_modules/@posthog/core/package.json +1 -1
  17. package/node_modules/@posthog/core/src/featureFlagLocalEvaluation.ts +143 -63
  18. package/node_modules/@posthog/core/src/index.ts +2 -0
  19. package/node_modules/@posthog/core/src/posthog-core.ts +3 -1
  20. package/node_modules/@posthog/core/src/types.ts +2 -0
  21. package/node_modules/@zuplo/core/package.json +1 -1
  22. package/node_modules/@zuplo/core/zeno.js +4 -4
  23. package/node_modules/@zuplo/graphql/package.json +1 -1
  24. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  25. package/node_modules/@zuplo/otel/package.json +1 -1
  26. package/node_modules/@zuplo/runtime/package.json +1 -1
  27. package/node_modules/body-parser/README.md +17 -13
  28. package/node_modules/body-parser/lib/read.js +74 -57
  29. package/node_modules/body-parser/lib/types/json.js +11 -11
  30. package/node_modules/body-parser/lib/types/urlencoded.js +5 -5
  31. package/node_modules/body-parser/lib/utils.js +0 -15
  32. package/node_modules/body-parser/package.json +7 -12
  33. package/node_modules/on-finished/index.js +14 -2
  34. package/node_modules/on-finished/package.json +11 -7
  35. package/package.json +11 -11
  36. package/node_modules/on-finished/HISTORY.md +0 -98
@@ -5,31 +5,16 @@
5
5
  */
6
6
 
7
7
  const bytes = require('bytes')
8
- const contentType = require('content-type')
9
8
  const typeis = require('type-is')
10
9
 
11
10
  /**
12
11
  * Module exports.
13
12
  */
14
13
  module.exports = {
15
- getCharset,
16
14
  normalizeOptions,
17
15
  passthrough
18
16
  }
19
17
 
20
- /**
21
- * Get the charset of a request.
22
- *
23
- * @param {Object} req
24
- * @returns {string | undefined}
25
- * @private
26
- */
27
- function getCharset (req) {
28
- const header = req.headers['content-type']
29
- if (!header) return undefined
30
- return contentType.parse(header).parameters.charset?.toLowerCase()
31
- }
32
-
33
18
  /**
34
19
  * Get the simple type checker.
35
20
  *
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "body-parser",
3
3
  "description": "Node.js body parsing middleware",
4
- "version": "2.3.0",
4
+ "version": "2.4.0",
5
5
  "contributors": [
6
6
  "Douglas Christopher Wilson <doug@somethingdoug.com>",
7
7
  "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
@@ -27,26 +27,21 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "bytes": "^3.1.2",
30
- "content-type": "^2.0.0",
30
+ "content-type": "^2.1.0",
31
31
  "debug": "^4.4.3",
32
32
  "http-errors": "^2.0.1",
33
- "iconv-lite": "^0.7.2",
33
+ "iconv-lite": "^0.7.3",
34
34
  "on-finished": "^2.4.1",
35
- "qs": "^6.15.2",
35
+ "qs": "^6.16.1",
36
36
  "raw-body": "^3.0.2",
37
37
  "type-is": "^2.1.0"
38
38
  },
39
39
  "devDependencies": {
40
- "eslint": "^8.57.1",
41
- "eslint-config-standard": "^14.1.1",
42
- "eslint-plugin-import": "^2.32.0",
43
- "eslint-plugin-markdown": "^3.0.1",
44
- "eslint-plugin-node": "^11.1.0",
45
- "eslint-plugin-promise": "^6.6.0",
46
- "eslint-plugin-standard": "^4.1.0",
40
+ "eslint": "^9.39.5",
47
41
  "mocha": "^11.7.6",
42
+ "neostandard": "^0.13.0",
48
43
  "nyc": "^17.1.0",
49
- "supertest": "^7.2.2"
44
+ "supertest": "7.3.0"
50
45
  },
51
46
  "files": [
52
47
  "lib/",
@@ -65,10 +65,11 @@ function onFinished (msg, listener) {
65
65
 
66
66
  function isFinished (msg) {
67
67
  var socket = msg.socket
68
+ var finished = writableEnded(msg)
68
69
 
69
- if (typeof msg.finished === 'boolean') {
70
+ if (typeof finished === 'boolean') {
70
71
  // OutgoingMessage
71
- return Boolean(msg.finished || (socket && !socket.writable))
72
+ return Boolean(finished || (socket && !socket.writable))
72
73
  }
73
74
 
74
75
  if (typeof msg.complete === 'boolean') {
@@ -232,3 +233,14 @@ function wrap (fn) {
232
233
  // return bound function
233
234
  return res.runInAsyncScope.bind(res, fn, null)
234
235
  }
236
+
237
+ /**
238
+ * Determines if a writable stream has finished.
239
+ *
240
+ * @param {Object} res
241
+ * @returns {boolean}
242
+ * @private
243
+ */
244
+ function writableEnded (res) {
245
+ return typeof res.writableEnded === 'boolean' ? res.writableEnded : res.finished
246
+ }
@@ -1,38 +1,42 @@
1
1
  {
2
2
  "name": "on-finished",
3
3
  "description": "Execute a callback when a request closes, finishes, or errors",
4
- "version": "2.4.1",
4
+ "version": "2.4.2",
5
5
  "contributors": [
6
6
  "Douglas Christopher Wilson <doug@somethingdoug.com>",
7
7
  "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
8
8
  ],
9
9
  "license": "MIT",
10
10
  "repository": "jshttp/on-finished",
11
+ "funding": {
12
+ "type": "opencollective",
13
+ "url": "https://opencollective.com/express"
14
+ },
15
+ "type": "commonjs",
11
16
  "dependencies": {
12
17
  "ee-first": "1.1.1"
13
18
  },
14
19
  "devDependencies": {
15
- "eslint": "7.32.0",
20
+ "eslint": "8.17.0",
16
21
  "eslint-config-standard": "14.1.1",
17
- "eslint-plugin-import": "2.25.4",
22
+ "eslint-plugin-import": "2.26.0",
18
23
  "eslint-plugin-markdown": "2.2.1",
19
24
  "eslint-plugin-node": "11.1.0",
20
- "eslint-plugin-promise": "5.2.0",
25
+ "eslint-plugin-promise": "6.0.0",
21
26
  "eslint-plugin-standard": "4.1.0",
22
- "mocha": "9.2.1",
27
+ "mocha": "12.0.3",
23
28
  "nyc": "15.1.0"
24
29
  },
25
30
  "engines": {
26
31
  "node": ">= 0.8"
27
32
  },
28
33
  "files": [
29
- "HISTORY.md",
30
34
  "LICENSE",
31
35
  "index.js"
32
36
  ],
33
37
  "scripts": {
34
38
  "lint": "eslint .",
35
- "test": "mocha --reporter spec --bail --check-leaks test/",
39
+ "test": "mocha --reporter spec --check-leaks test/",
36
40
  "test-ci": "nyc --reporter=lcovonly --reporter=text npm test",
37
41
  "test-cov": "nyc --reporter=html --reporter=text npm test"
38
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "7.12.6",
3
+ "version": "7.12.7",
4
4
  "repository": "https://github.com/zuplo/zuplo",
5
5
  "author": "Zuplo, Inc.",
6
6
  "type": "module",
@@ -31,10 +31,10 @@
31
31
  "@opentelemetry/api": "1.9.0",
32
32
  "@opentelemetry/api-logs": "0.220.0",
33
33
  "@swc/core": "1.10.18",
34
- "@zuplo/core": "7.12.6",
34
+ "@zuplo/core": "7.12.7",
35
35
  "@zuplo/editor": "1.0.33162667821",
36
- "@zuplo/openapi-tools": "7.12.6",
37
- "@zuplo/runtime": "7.12.6",
36
+ "@zuplo/openapi-tools": "7.12.7",
37
+ "@zuplo/runtime": "7.12.7",
38
38
  "chalk": "5.4.1",
39
39
  "chokidar": "3.5.3",
40
40
  "cookie": "1.0.2",
@@ -65,15 +65,15 @@
65
65
  "workerd": "1.20261002.1",
66
66
  "yargs": "17.7.2",
67
67
  "zod": "4.4.3",
68
- "@zuplo/graphql": "7.12.6",
69
- "@zuplo/otel": "7.12.6"
68
+ "@zuplo/graphql": "7.12.7",
69
+ "@zuplo/otel": "7.12.7"
70
70
  },
71
71
  "optionalDependencies": {
72
- "@zuplo/lint-darwin-arm64": "7.12.6",
73
- "@zuplo/lint-darwin-x64": "7.12.6",
74
- "@zuplo/lint-linux-x64": "7.12.6",
75
- "@zuplo/lint-linux-arm64": "7.12.6",
76
- "@zuplo/lint-win32-x64": "7.12.6"
72
+ "@zuplo/lint-darwin-arm64": "7.12.7",
73
+ "@zuplo/lint-darwin-x64": "7.12.7",
74
+ "@zuplo/lint-linux-x64": "7.12.7",
75
+ "@zuplo/lint-linux-arm64": "7.12.7",
76
+ "@zuplo/lint-win32-x64": "7.12.7"
77
77
  },
78
78
  "bundleDependencies": [
79
79
  "@inquirer/prompts",
@@ -1,98 +0,0 @@
1
- 2.4.1 / 2022-02-22
2
- ==================
3
-
4
- * Fix error on early async hooks implementations
5
-
6
- 2.4.0 / 2022-02-21
7
- ==================
8
-
9
- * Prevent loss of async hooks context
10
-
11
- 2.3.0 / 2015-05-26
12
- ==================
13
-
14
- * Add defined behavior for HTTP `CONNECT` requests
15
- * Add defined behavior for HTTP `Upgrade` requests
16
- * deps: ee-first@1.1.1
17
-
18
- 2.2.1 / 2015-04-22
19
- ==================
20
-
21
- * Fix `isFinished(req)` when data buffered
22
-
23
- 2.2.0 / 2014-12-22
24
- ==================
25
-
26
- * Add message object to callback arguments
27
-
28
- 2.1.1 / 2014-10-22
29
- ==================
30
-
31
- * Fix handling of pipelined requests
32
-
33
- 2.1.0 / 2014-08-16
34
- ==================
35
-
36
- * Check if `socket` is detached
37
- * Return `undefined` for `isFinished` if state unknown
38
-
39
- 2.0.0 / 2014-08-16
40
- ==================
41
-
42
- * Add `isFinished` function
43
- * Move to `jshttp` organization
44
- * Remove support for plain socket argument
45
- * Rename to `on-finished`
46
- * Support both `req` and `res` as arguments
47
- * deps: ee-first@1.0.5
48
-
49
- 1.2.2 / 2014-06-10
50
- ==================
51
-
52
- * Reduce listeners added to emitters
53
- - avoids "event emitter leak" warnings when used multiple times on same request
54
-
55
- 1.2.1 / 2014-06-08
56
- ==================
57
-
58
- * Fix returned value when already finished
59
-
60
- 1.2.0 / 2014-06-05
61
- ==================
62
-
63
- * Call callback when called on already-finished socket
64
-
65
- 1.1.4 / 2014-05-27
66
- ==================
67
-
68
- * Support node.js 0.8
69
-
70
- 1.1.3 / 2014-04-30
71
- ==================
72
-
73
- * Make sure errors passed as instanceof `Error`
74
-
75
- 1.1.2 / 2014-04-18
76
- ==================
77
-
78
- * Default the `socket` to passed-in object
79
-
80
- 1.1.1 / 2014-01-16
81
- ==================
82
-
83
- * Rename module to `finished`
84
-
85
- 1.1.0 / 2013-12-25
86
- ==================
87
-
88
- * Call callback when called on already-errored socket
89
-
90
- 1.0.1 / 2013-12-20
91
- ==================
92
-
93
- * Actually pass the error to the callback
94
-
95
- 1.0.0 / 2013-12-20
96
- ==================
97
-
98
- * Initial release