@balena/pinejs 23.0.0-build-23-x-975d89ac1105b90ea6ecdea29e038e977204acdb-1 → 23.0.0-build-23-x-06bf0c67151995a64e8f502ea9dfb1232abb6001-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": "23.0.0-build-23-x-975d89ac1105b90ea6ecdea29e038e977204acdb-1",
3
+ "version": "23.0.0-build-23-x-06bf0c67151995a64e8f502ea9dfb1232abb6001-1",
4
4
  "main": "out/server-glue/module.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:balena-io/pinejs.git",
@@ -25,18 +25,15 @@
25
25
  "lint-fix": "balena-lint -t tsconfig.dev.json -e js -e ts --fix src test build typings Gruntfile.cts",
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
- "overrides": {
29
- "@balena/pinejs": "file:./"
30
- },
31
28
  "dependencies": {
32
29
  "@balena/abstract-sql-compiler": "^11.0.0",
33
- "@balena/abstract-sql-to-typescript": "^6.0.0",
30
+ "@balena/abstract-sql-to-typescript": "^6.1.0",
34
31
  "@balena/env-parsing": "^1.2.5",
35
32
  "@balena/lf-to-abstract-sql": "^5.0.10",
36
33
  "@balena/odata-parser": "^4.2.6",
37
34
  "@balena/odata-to-abstract-sql": "^9.0.0",
38
- "@balena/sbvr-parser": "^1.4.10",
39
- "@balena/sbvr-types": "^11.1.0",
35
+ "@balena/sbvr-parser": "^1.4.12",
36
+ "@balena/sbvr-types": "^11.1.3",
40
37
  "@sindresorhus/fnv1a": "^3.1.0",
41
38
  "@types/body-parser": "^1.19.6",
42
39
  "@types/compression": "^1.8.1",
@@ -44,15 +41,15 @@
44
41
  "@types/deep-freeze": "^0.1.5",
45
42
  "@types/express": "^4.17.23",
46
43
  "@types/express-session": "^1.18.2",
47
- "@types/lodash": "^4.17.17",
44
+ "@types/lodash": "^4.17.20",
48
45
  "@types/memoizee": "^0.4.12",
49
46
  "@types/method-override": "^3.0.0",
50
47
  "@types/mysql": "^2.15.27",
51
- "@types/node": "^20.19.0",
48
+ "@types/node": "^20.19.9",
52
49
  "@types/passport": "^1.0.17",
53
50
  "@types/passport-local": "^1.0.38",
54
51
  "@types/passport-strategy": "^0.2.38",
55
- "@types/pg": "^8.15.4",
52
+ "@types/pg": "^8.15.5",
56
53
  "@types/randomstring": "^1.3.0",
57
54
  "@types/websql": "^0.0.30",
58
55
  "ajv": "^8.17.1",
@@ -61,29 +58,29 @@
61
58
  "cron-parser": "^5.3.0",
62
59
  "deep-freeze": "^0.0.1",
63
60
  "eventemitter3": "^5.0.1",
64
- "express-session": "^1.18.1",
61
+ "express-session": "^1.18.2",
65
62
  "json-schema-to-ts": "3.1.1",
66
63
  "lodash": "^4.17.21",
67
64
  "memoizee": "^0.4.17",
68
- "pinejs-client-core": "^8.3.0",
65
+ "pinejs-client-core": "^8.3.1",
69
66
  "randomstring": "^1.3.1",
70
67
  "typed-error": "^3.2.2"
71
68
  },
72
69
  "devDependencies": {
73
- "@balena/lint": "^9.3.1",
70
+ "@balena/lint": "^9.3.2",
74
71
  "@balena/pinejs": "file:./",
75
- "@balena/pinejs-webresource-s3": "^2.1.6",
76
- "@faker-js/faker": "^9.8.0",
72
+ "@balena/pinejs-webresource-s3": "^2.1.7",
73
+ "@faker-js/faker": "^9.9.0",
77
74
  "@types/busboy": "^1.5.4",
78
75
  "@types/chai": "^5.2.2",
79
76
  "@types/grunt": "^0.4.32",
80
77
  "@types/mocha": "^10.0.10",
81
78
  "@types/on-finished": "^2.3.5",
82
- "@types/request": "^2.48.12",
79
+ "@types/request": "^2.48.13",
83
80
  "@types/supertest": "^6.0.3",
84
81
  "@types/terser-webpack-plugin": "^5.2.0",
85
82
  "@types/webpack": "^5.28.5",
86
- "chai": "^5.2.0",
83
+ "chai": "^5.2.1",
87
84
  "grunt": "^1.6.1",
88
85
  "grunt-check-dependencies": "^1.0.0",
89
86
  "grunt-cli": "^1.5.0",
@@ -96,37 +93,37 @@
96
93
  "grunt-ts": "^6.0.0-beta.22",
97
94
  "grunt-webpack": "^7.0.0",
98
95
  "husky": "^9.1.7",
99
- "lint-staged": "^16.1.0",
96
+ "lint-staged": "^16.1.4",
100
97
  "load-grunt-tasks": "^5.1.0",
101
98
  "mocha": "11.7.1",
102
99
  "on-finished": "^2.4.1",
103
- "pinejs-client-supertest": "^3.1.0",
100
+ "pinejs-client-supertest": "^3.1.1",
104
101
  "raw-loader": "^4.0.2",
105
102
  "request": "^2.88.2",
106
103
  "require-npm4-to-publish": "^1.0.0",
107
- "supertest": "^7.1.1",
104
+ "supertest": "^7.1.4",
108
105
  "terser-webpack-plugin": "^5.3.14",
109
106
  "ts-loader": "^9.5.2",
110
107
  "ts-node": "^10.9.2",
111
- "typescript": "^5.8.3",
112
- "webpack": "^5.99.9",
108
+ "typescript": "^5.9.2",
109
+ "webpack": "^5.101.0",
113
110
  "webpack-dev-server": "^5.2.2"
114
111
  },
115
112
  "optionalDependencies": {
116
- "@aws-sdk/client-s3": "^3.828.0",
117
- "@aws-sdk/lib-storage": "^3.828.0",
118
- "@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",
119
116
  "bcrypt": "^5.1.1",
120
117
  "body-parser": "^1.20.3",
121
- "compression": "^1.8.0",
118
+ "compression": "^1.8.1",
122
119
  "cookie-parser": "^1.4.7",
123
120
  "express": "^4.21.2",
124
121
  "method-override": "^3.0.0",
125
122
  "mysql": "^2.18.1",
126
123
  "passport": "^0.7.0",
127
124
  "passport-local": "^1.0.0",
128
- "pg": "^8.16.0",
129
- "pg-connection-string": "^2.9.0",
125
+ "pg": "^8.16.3",
126
+ "pg-connection-string": "^2.9.1",
130
127
  "serve-static": "^1.16.2"
131
128
  },
132
129
  "engines": {
@@ -151,6 +148,6 @@
151
148
  "recursive": true
152
149
  },
153
150
  "versionist": {
154
- "publishedAt": "2025-08-04T16:14:28.156Z"
151
+ "publishedAt": "2025-08-06T14:22:49.500Z"
155
152
  }
156
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];
@@ -1,4 +1,4 @@
1
- // These types were generated by @balena/abstract-sql-to-typescript v6.0.0
1
+ // These types were generated by @balena/abstract-sql-to-typescript v6.1.0
2
2
 
3
3
  import type { Types } from '@balena/abstract-sql-to-typescript';
4
4
 
@@ -1,4 +1,4 @@
1
- // These types were generated by @balena/abstract-sql-to-typescript v6.0.0
1
+ // These types were generated by @balena/abstract-sql-to-typescript v6.1.0
2
2
 
3
3
  import type { Types } from '@balena/abstract-sql-to-typescript';
4
4
 
@@ -1,4 +1,4 @@
1
- // These types were generated by @balena/abstract-sql-to-typescript v6.0.0
1
+ // These types were generated by @balena/abstract-sql-to-typescript v6.1.0
2
2
 
3
3
  import type { Types } from '@balena/abstract-sql-to-typescript';
4
4
 
@@ -1,4 +1,4 @@
1
- // These types were generated by @balena/abstract-sql-to-typescript v6.0.0
1
+ // These types were generated by @balena/abstract-sql-to-typescript v6.1.0
2
2
 
3
3
  import type { Types } from '@balena/abstract-sql-to-typescript';
4
4
 
@@ -1,4 +1,4 @@
1
- // These types were generated by @balena/abstract-sql-to-typescript v6.0.0
1
+ // These types were generated by @balena/abstract-sql-to-typescript v6.1.0
2
2
 
3
3
  import type { Types } from '@balena/abstract-sql-to-typescript';
4
4