@tstdl/base 0.92.111 → 0.92.113
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/document-management/server/services/document-management.service.js +2 -1
- package/file/index.d.ts +0 -1
- package/file/index.js +0 -1
- package/file/server/index.d.ts +1 -0
- package/file/server/index.js +1 -0
- package/package.json +7 -6
- package/pdf/utils.js +1 -1
- package/utils/object/object.js +4 -3
- /package/file/{temporary-file.d.ts → server/temporary-file.d.ts} +0 -0
- /package/file/{temporary-file.js → server/temporary-file.js} +0 -0
|
@@ -62,7 +62,8 @@ import { P, match } from 'ts-pattern';
|
|
|
62
62
|
import { AiService } from '../../../ai/index.js';
|
|
63
63
|
import { Enumerable } from '../../../enumerable/index.js';
|
|
64
64
|
import { BadRequestError } from '../../../errors/index.js';
|
|
65
|
-
import {
|
|
65
|
+
import { getMimeType, getMimeTypeExtensions } from '../../../file/index.js';
|
|
66
|
+
import { TemporaryFile } from '../../../file/server/index.js';
|
|
66
67
|
import { Singleton, afterResolve, inject } from '../../../injector/index.js';
|
|
67
68
|
import { Logger } from '../../../logger/logger.js';
|
|
68
69
|
import { MessageBus } from '../../../message-bus/message-bus.js';
|
package/file/index.d.ts
CHANGED
package/file/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './temporary-file.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './temporary-file.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tstdl/base",
|
|
3
|
-
"version": "0.92.
|
|
3
|
+
"version": "0.92.113",
|
|
4
4
|
"author": "Patrick Hein",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"./enumeration": "./enumeration/index.js",
|
|
63
63
|
"./errors": "./errors/index.js",
|
|
64
64
|
"./file": "./file/index.js",
|
|
65
|
+
"./file/server": "./file/server/index.js",
|
|
65
66
|
"./function": "./function/index.js",
|
|
66
67
|
"./http": "./http/index.js",
|
|
67
68
|
"./http/node": "./http/server/node/index.js",
|
|
@@ -137,7 +138,7 @@
|
|
|
137
138
|
"reflect-metadata": "^0.2",
|
|
138
139
|
"rxjs": "^7.8",
|
|
139
140
|
"ts-pattern": "^5.6",
|
|
140
|
-
"type-fest": "
|
|
141
|
+
"type-fest": "4.37"
|
|
141
142
|
},
|
|
142
143
|
"devDependencies": {
|
|
143
144
|
"@biomejs/biome": "1.9",
|
|
@@ -150,10 +151,10 @@
|
|
|
150
151
|
"@types/node": "22",
|
|
151
152
|
"@types/nodemailer": "6.4",
|
|
152
153
|
"@types/pg": "8.11",
|
|
153
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
154
|
+
"@typescript-eslint/eslint-plugin": "8.27",
|
|
154
155
|
"concurrently": "9.1",
|
|
155
156
|
"drizzle-kit": "0.30",
|
|
156
|
-
"eslint": "9.
|
|
157
|
+
"eslint": "9.23",
|
|
157
158
|
"globals": "16.0",
|
|
158
159
|
"tsc-alias": "1.8",
|
|
159
160
|
"typescript": "5.8"
|
|
@@ -167,11 +168,11 @@
|
|
|
167
168
|
"@zxcvbn-ts/language-de": "^3.0",
|
|
168
169
|
"@zxcvbn-ts/language-en": "^3.0",
|
|
169
170
|
"chroma-js": "^2.6",
|
|
170
|
-
"drizzle-orm": "^0.
|
|
171
|
+
"drizzle-orm": "^0.41",
|
|
171
172
|
"handlebars": "^4.7",
|
|
172
173
|
"minio": "^8.0",
|
|
173
174
|
"mjml": "^4.15",
|
|
174
|
-
"mongodb": "^6.
|
|
175
|
+
"mongodb": "^6.15",
|
|
175
176
|
"nodemailer": "^6.10",
|
|
176
177
|
"pg": "^8.14",
|
|
177
178
|
"playwright": "^1.51",
|
package/pdf/utils.js
CHANGED
|
@@ -50,7 +50,7 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres
|
|
|
50
50
|
var e = new Error(message);
|
|
51
51
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
52
52
|
});
|
|
53
|
-
import { TemporaryFile } from '../file/temporary-file.js';
|
|
53
|
+
import { TemporaryFile } from '../file/server/temporary-file.js';
|
|
54
54
|
import { spawnCommand } from '../process/spawn.js';
|
|
55
55
|
import { isString } from '../utils/type-guards.js';
|
|
56
56
|
export async function getPdfPageCount(file) {
|
package/utils/object/object.js
CHANGED
|
@@ -110,12 +110,13 @@ export function fromDeepObjectEntries(entries) {
|
|
|
110
110
|
const jsonPath = JsonPath.from(path);
|
|
111
111
|
let target = obj;
|
|
112
112
|
for (let i = 0; i < jsonPath.nodes.length - 1; i++) {
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
const key = jsonPath.nodes[i];
|
|
114
|
+
if (hasOwnProperty(target, key)) {
|
|
115
|
+
target = target[key];
|
|
115
116
|
}
|
|
116
117
|
else {
|
|
117
118
|
const child = {};
|
|
118
|
-
target[
|
|
119
|
+
target[key] = child;
|
|
119
120
|
target = child;
|
|
120
121
|
}
|
|
121
122
|
}
|
|
File without changes
|
|
File without changes
|