@tstdl/base 0.90.54 → 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 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;
@@ -34,7 +34,7 @@ let S3ObjectStorage = class S3ObjectStorage extends ObjectStorage {
34
34
  if (exists) {
35
35
  return;
36
36
  }
37
- await this.client.makeBucket(this.bucket, region, { ObjectLocking: options?.objectLocking ?? false });
37
+ await this.client.makeBucket(this.bucket, region ?? '', { ObjectLocking: options?.objectLocking ?? false });
38
38
  }
39
39
  async exists(key) {
40
40
  const bucketKey = this.getBucketKey(key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.90.54",
3
+ "version": "0.90.57",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -120,10 +120,10 @@
120
120
  "@types/mjml": "4.7",
121
121
  "@types/node": "20",
122
122
  "@types/nodemailer": "6.4",
123
- "@typescript-eslint/eslint-plugin": "6.19",
124
- "@typescript-eslint/parser": "6.19",
123
+ "@typescript-eslint/eslint-plugin": "6.21",
124
+ "@typescript-eslint/parser": "6.21",
125
125
  "concurrently": "8.2",
126
- "esbuild": "0.19",
126
+ "esbuild": "0.20",
127
127
  "eslint": "8.56",
128
128
  "eslint-import-resolver-typescript": "3.6",
129
129
  "eslint-plugin-import": "2.29",
@@ -133,7 +133,7 @@
133
133
  "typescript": "5.3"
134
134
  },
135
135
  "peerDependencies": {
136
- "@elastic/elasticsearch": "^8.11",
136
+ "@elastic/elasticsearch": "^8.12",
137
137
  "@koa/router": "^12.0",
138
138
  "@tstdl/angular": "^0.90",
139
139
  "@zxcvbn-ts/core": "^3.0",
@@ -144,13 +144,13 @@
144
144
  "handlebars": "^4.7",
145
145
  "koa": "^2.15",
146
146
  "minio": "^7.1",
147
- "mjml": "^4.14",
147
+ "mjml": "^4.15",
148
148
  "mongodb": "^6.3",
149
149
  "nodemailer": "^6.9",
150
150
  "playwright": "^1.41",
151
151
  "preact": "^10.19",
152
152
  "preact-render-to-string": "^6.3",
153
- "undici": "^6.5",
153
+ "undici": "^6.6",
154
154
  "urlpattern-polyfill": "^10.0"
155
155
  },
156
156
  "peerDependenciesMeta": {