@balena/pinejs 22.1.2 → 22.1.3-build-update-deps-484a0ac08086e881026323429a4c0d0d677b1bdd-1

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": "@balena/pinejs",
3
- "version": "22.1.2",
3
+ "version": "22.1.3-build-update-deps-484a0ac08086e881026323429a4c0d0d677b1bdd-1",
4
4
  "main": "out/server-glue/module.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:balena-io/pinejs.git",
@@ -26,14 +26,14 @@
26
26
  "generate-types": "node ./bin/sbvr-compiler.js generate-types ./src/sbvr-api/user.sbvr ./src/sbvr-api/user.ts && node ./bin/sbvr-compiler.js generate-types ./src/migrator/migrations.sbvr ./src/migrator/migrations.ts && node ./bin/sbvr-compiler.js generate-types ./src/sbvr-api/dev.sbvr ./src/sbvr-api/dev.ts && node ./bin/sbvr-compiler.js generate-types ./src/tasks/tasks.sbvr ./src/tasks/tasks.ts && node ./bin/sbvr-compiler.js generate-types ./src/webresource-handler/webresource.sbvr ./src/webresource-handler/webresource.ts && balena-lint -t tsconfig.dev.json --fix ./src/sbvr-api/user.ts ./src/migrator/migrations.ts ./src/sbvr-api/dev.ts"
27
27
  },
28
28
  "dependencies": {
29
- "@balena/abstract-sql-compiler": "^10.5.1",
30
- "@balena/abstract-sql-to-typescript": "^5.1.2",
29
+ "@balena/abstract-sql-compiler": "^10.6.3",
30
+ "@balena/abstract-sql-to-typescript": "^5.1.5",
31
31
  "@balena/env-parsing": "^1.2.5",
32
32
  "@balena/lf-to-abstract-sql": "^5.0.10",
33
33
  "@balena/odata-parser": "^4.2.6",
34
- "@balena/odata-to-abstract-sql": "^8.0.0",
35
- "@balena/sbvr-parser": "^1.4.10",
36
- "@balena/sbvr-types": "^11.1.0",
34
+ "@balena/odata-to-abstract-sql": "^8.0.2",
35
+ "@balena/sbvr-parser": "^1.4.12",
36
+ "@balena/sbvr-types": "^11.1.3",
37
37
  "@sindresorhus/fnv1a": "^3.1.0",
38
38
  "@types/body-parser": "^1.19.6",
39
39
  "@types/compression": "^1.8.1",
@@ -41,15 +41,15 @@
41
41
  "@types/deep-freeze": "^0.1.5",
42
42
  "@types/express": "^4.17.23",
43
43
  "@types/express-session": "^1.18.2",
44
- "@types/lodash": "^4.17.17",
44
+ "@types/lodash": "^4.17.20",
45
45
  "@types/memoizee": "^0.4.12",
46
46
  "@types/method-override": "^3.0.0",
47
47
  "@types/mysql": "^2.15.27",
48
- "@types/node": "^20.19.0",
48
+ "@types/node": "^20.19.9",
49
49
  "@types/passport": "^1.0.17",
50
50
  "@types/passport-local": "^1.0.38",
51
51
  "@types/passport-strategy": "^0.2.38",
52
- "@types/pg": "^8.15.4",
52
+ "@types/pg": "^8.15.5",
53
53
  "@types/randomstring": "^1.3.0",
54
54
  "@types/websql": "^0.0.30",
55
55
  "ajv": "^8.17.1",
@@ -58,29 +58,29 @@
58
58
  "cron-parser": "^5.3.0",
59
59
  "deep-freeze": "^0.0.1",
60
60
  "eventemitter3": "^5.0.1",
61
- "express-session": "^1.18.1",
61
+ "express-session": "^1.18.2",
62
62
  "json-schema-to-ts": "3.1.1",
63
63
  "lodash": "^4.17.21",
64
64
  "memoizee": "^0.4.17",
65
- "pinejs-client-core": "^8.3.0",
65
+ "pinejs-client-core": "^8.3.1",
66
66
  "randomstring": "^1.3.1",
67
67
  "typed-error": "^3.2.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@balena/lint": "^9.3.1",
70
+ "@balena/lint": "^9.3.2",
71
71
  "@balena/pinejs": "file:./",
72
72
  "@balena/pinejs-webresource-s3": "^2.1.6",
73
- "@faker-js/faker": "^9.8.0",
73
+ "@faker-js/faker": "^9.9.0",
74
74
  "@types/busboy": "^1.5.4",
75
75
  "@types/chai": "^5.2.2",
76
76
  "@types/grunt": "^0.4.32",
77
77
  "@types/mocha": "^10.0.10",
78
78
  "@types/on-finished": "^2.3.5",
79
- "@types/request": "^2.48.12",
79
+ "@types/request": "^2.48.13",
80
80
  "@types/supertest": "^6.0.3",
81
81
  "@types/terser-webpack-plugin": "^5.2.0",
82
82
  "@types/webpack": "^5.28.5",
83
- "chai": "^5.2.0",
83
+ "chai": "^5.2.1",
84
84
  "grunt": "^1.6.1",
85
85
  "grunt-check-dependencies": "^1.0.0",
86
86
  "grunt-cli": "^1.5.0",
@@ -93,37 +93,37 @@
93
93
  "grunt-ts": "^6.0.0-beta.22",
94
94
  "grunt-webpack": "^7.0.0",
95
95
  "husky": "^9.1.7",
96
- "lint-staged": "^16.1.0",
96
+ "lint-staged": "^16.1.4",
97
97
  "load-grunt-tasks": "^5.1.0",
98
98
  "mocha": "11.7.1",
99
99
  "on-finished": "^2.4.1",
100
- "pinejs-client-supertest": "^3.1.0",
100
+ "pinejs-client-supertest": "^3.1.1",
101
101
  "raw-loader": "^4.0.2",
102
102
  "request": "^2.88.2",
103
103
  "require-npm4-to-publish": "^1.0.0",
104
- "supertest": "^7.1.1",
104
+ "supertest": "^7.1.4",
105
105
  "terser-webpack-plugin": "^5.3.14",
106
106
  "ts-loader": "^9.5.2",
107
107
  "ts-node": "^10.9.2",
108
- "typescript": "^5.8.3",
109
- "webpack": "^5.99.9",
108
+ "typescript": "^5.9.2",
109
+ "webpack": "^5.101.0",
110
110
  "webpack-dev-server": "^5.2.2"
111
111
  },
112
112
  "optionalDependencies": {
113
- "@aws-sdk/client-s3": "^3.828.0",
114
- "@aws-sdk/lib-storage": "^3.828.0",
115
- "@aws-sdk/s3-request-presigner": "^3.828.0",
113
+ "@aws-sdk/client-s3": "^3.859.0",
114
+ "@aws-sdk/lib-storage": "^3.859.0",
115
+ "@aws-sdk/s3-request-presigner": "^3.859.0",
116
116
  "bcrypt": "^5.1.1",
117
117
  "body-parser": "^1.20.3",
118
- "compression": "^1.8.0",
118
+ "compression": "^1.8.1",
119
119
  "cookie-parser": "^1.4.7",
120
120
  "express": "^4.21.2",
121
121
  "method-override": "^3.0.0",
122
122
  "mysql": "^2.18.1",
123
123
  "passport": "^0.7.0",
124
124
  "passport-local": "^1.0.0",
125
- "pg": "^8.16.0",
126
- "pg-connection-string": "^2.9.0",
125
+ "pg": "^8.16.3",
126
+ "pg-connection-string": "^2.9.1",
127
127
  "serve-static": "^1.16.2"
128
128
  },
129
129
  "engines": {
@@ -148,6 +148,6 @@
148
148
  "recursive": true
149
149
  },
150
150
  "versionist": {
151
- "publishedAt": "2025-08-04T15:29:38.210Z"
151
+ "publishedAt": "2025-08-06T13:38:36.356Z"
152
152
  }
153
153
  }
@@ -100,7 +100,10 @@ const app = (function () {
100
100
  data = _.cloneDeep(data);
101
101
  this.end(data);
102
102
  },
103
- end(/** @type any */ data) {
103
+ /**
104
+ * @param {any=} data
105
+ */
106
+ end(data) {
104
107
  if (this.statusCode >= 400) {
105
108
  // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
106
109
  reject([this.statusCode, data, null]);
@@ -134,7 +137,10 @@ const app = (function () {
134
137
  let i = -1;
135
138
  let j = -1;
136
139
 
137
- const next = function (/** @type {undefined | 'route'} */ route) {
140
+ /**
141
+ * @param {'route'=} route
142
+ */
143
+ const next = function (route) {
138
144
  j++;
139
145
  if (route === 'route' || j >= methodHandlers[i].middleware.length) {
140
146
  checkMethodHandlers();
@@ -175,6 +181,7 @@ const app = (function () {
175
181
  get(/** @type string */ name) {
176
182
  const callback = arguments[arguments.length - 1];
177
183
  if (typeof callback === 'function') {
184
+ // @ts-expect-error - Typescript 5.9 doesn't like the spread params in js anymore
178
185
  addHandler('GET', ...arguments);
179
186
  } else {
180
187
  return appVars[name];
@@ -187,15 +194,22 @@ const app = (function () {
187
194
  merge: _.partial(addHandler, 'MERGE'),
188
195
  options: _.partial(addHandler, 'OPTIONS'),
189
196
  all(/** @type any[] */ ...args) {
197
+ // @ts-expect-error - Typescript 5.9 doesn't like the spread params in js anymore
190
198
  this.post(...args);
199
+ // @ts-expect-error - Typescript 5.9 doesn't like the spread params in js anymore
191
200
  this.get(...args);
201
+ // @ts-expect-error - Typescript 5.9 doesn't like the spread params in js anymore
192
202
  this.put(...args);
203
+ // @ts-expect-error - Typescript 5.9 doesn't like the spread params in js anymore
193
204
  this.delete(...args);
194
205
  },
195
206
  process(/** @type any[] */ ...args) {
196
207
  // The promise will run the real process function asynchronously once the app is enabled,
197
208
  // which matches somewhat more closely to an AJAX call than doing it synchronously.
198
- return enabled.then(() => process(...args));
209
+ return enabled.then(() =>
210
+ // @ts-expect-error - Typescript 5.9 doesn't like the spread params in js anymore
211
+ process(...args),
212
+ );
199
213
  },
200
214
  listen() {
201
215
  const callback = arguments[arguments.length - 1];