@tstdl/base 0.90.56 → 0.90.57
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/core.d.ts +3 -0
- package/core.js +4 -0
- package/package.json +5 -5
package/core.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import { Injector } from './injector/injector.js';
|
|
|
3
3
|
import type { InjectionToken } from './injector/token.js';
|
|
4
4
|
import type { LoggerArgument } from './logger/index.js';
|
|
5
5
|
import { LogLevel, Logger } from './logger/index.js';
|
|
6
|
+
declare global {
|
|
7
|
+
var tstdlLoaded: boolean | undefined;
|
|
8
|
+
}
|
|
6
9
|
export declare const CORE_LOGGER: InjectionToken<Logger, never>;
|
|
7
10
|
/**
|
|
8
11
|
* @deprecated Should be avoided. Use `Application` scoped injector instead.
|
package/core.js
CHANGED
|
@@ -6,6 +6,10 @@ import { LOG_LEVEL } from './logger/tokens.js';
|
|
|
6
6
|
import { initializeSignals, setProcessShutdownLogger } from './process-shutdown.js';
|
|
7
7
|
import { timeout } from './utils/timing.js';
|
|
8
8
|
import { assertDefinedPass, isDefined, isUndefined } from './utils/type-guards.js';
|
|
9
|
+
if (globalThis.tstdlLoaded == true) {
|
|
10
|
+
console.error(new Error('tstdl seems to be loaded multiple times. This is likely an error as some modules won\'t work as intended this way.'));
|
|
11
|
+
}
|
|
12
|
+
globalThis.tstdlLoaded = true;
|
|
9
13
|
export const CORE_LOGGER = injectionToken('core logger');
|
|
10
14
|
let globalInjector;
|
|
11
15
|
let _isDevMode = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tstdl/base",
|
|
3
|
-
"version": "0.90.
|
|
3
|
+
"version": "0.90.57",
|
|
4
4
|
"author": "Patrick Hein",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
"@types/mjml": "4.7",
|
|
121
121
|
"@types/node": "20",
|
|
122
122
|
"@types/nodemailer": "6.4",
|
|
123
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
124
|
-
"@typescript-eslint/parser": "6.
|
|
123
|
+
"@typescript-eslint/eslint-plugin": "6.21",
|
|
124
|
+
"@typescript-eslint/parser": "6.21",
|
|
125
125
|
"concurrently": "8.2",
|
|
126
126
|
"esbuild": "0.20",
|
|
127
127
|
"eslint": "8.56",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"typescript": "5.3"
|
|
134
134
|
},
|
|
135
135
|
"peerDependencies": {
|
|
136
|
-
"@elastic/elasticsearch": "^8.
|
|
136
|
+
"@elastic/elasticsearch": "^8.12",
|
|
137
137
|
"@koa/router": "^12.0",
|
|
138
138
|
"@tstdl/angular": "^0.90",
|
|
139
139
|
"@zxcvbn-ts/core": "^3.0",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"playwright": "^1.41",
|
|
151
151
|
"preact": "^10.19",
|
|
152
152
|
"preact-render-to-string": "^6.3",
|
|
153
|
-
"undici": "^6.
|
|
153
|
+
"undici": "^6.6",
|
|
154
154
|
"urlpattern-polyfill": "^10.0"
|
|
155
155
|
},
|
|
156
156
|
"peerDependenciesMeta": {
|