@tsed/scalar 8.4.2 → 8.4.4

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.
@@ -1,3 +1,4 @@
1
- import { join } from "path";
2
- export const ROOT_DIR = join(import.meta.dirname, "..");
1
+ import { join } from "node:path";
2
+ import { getValue } from "@tsed/core";
3
+ export const ROOT_DIR = join(getValue(import.meta, "dirname", ""), "..");
3
4
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAE1B,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { basename } from "node:path";
2
+ import { join } from "node:path";
2
3
  import { context } from "@tsed/di";
3
- import { join } from "path";
4
4
  export function indexMiddleware(viewPath, conf) {
5
5
  return async () => {
6
6
  const ctx = context();
@@ -1 +1 @@
1
- {"version":3,"file":"indexMiddleware.js","sourceRoot":"","sources":["../../../src/middlewares/indexMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AACjC,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAI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MAAM,IAAI,GAAG;YACX,YAAY,EAAE,MAAM;YACpB,IAAI,EAAE;gBACJ,GAAG,EAAE,GAAG,IAAI,IAAI,QAAQ,EAAE;aAC3B;YACD,GAAG,OAAO;SACX,CAAC;QAEF,GAAG,CAAC,QAAQ,CAAC,IAAI,CACf,MAAM,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE;YAClC,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;YACtC,GAAG;YACH,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;YACjE,OAAO,EAAE,IAAI;SACd,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/scalar",
3
3
  "description": "Scalar package for Ts.ED framework",
4
4
  "type": "module",
5
- "version": "8.4.2",
5
+ "version": "8.4.4",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -27,27 +27,27 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@scalar/types": "^0.0.23",
30
- "@tsed/normalize-path": "8.4.2",
31
- "@tsed/openapi-utils": "8.4.2",
32
- "@tsed/openspec": "8.4.2",
30
+ "@tsed/normalize-path": "8.4.4",
31
+ "@tsed/openapi-utils": "8.4.4",
32
+ "@tsed/openspec": "8.4.4",
33
33
  "tslib": "2.7.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@tsed/barrels": "8.4.2",
37
- "@tsed/core": "8.4.2",
38
- "@tsed/di": "8.4.2",
39
- "@tsed/json-mapper": "8.4.2",
40
- "@tsed/openspec": "8.4.2",
41
- "@tsed/platform-http": "8.4.2",
42
- "@tsed/schema": "8.4.2",
43
- "@tsed/swagger": "8.4.2",
44
- "@tsed/typescript": "8.4.2",
36
+ "@tsed/barrels": "8.4.4",
37
+ "@tsed/core": "8.4.4",
38
+ "@tsed/di": "8.4.4",
39
+ "@tsed/json-mapper": "8.4.4",
40
+ "@tsed/openspec": "8.4.4",
41
+ "@tsed/platform-http": "8.4.4",
42
+ "@tsed/schema": "8.4.4",
43
+ "@tsed/swagger": "8.4.4",
44
+ "@tsed/typescript": "8.4.4",
45
45
  "eslint": "9.12.0",
46
46
  "typescript": "5.4.5",
47
47
  "vitest": "2.1.2"
48
48
  },
49
49
  "peerDependencies": {
50
- "@tsed/platform-http": ">=8.4.2"
50
+ "@tsed/platform-http": ">=8.4.4"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "@tsed/platform-http": {
package/readme.md CHANGED
@@ -40,7 +40,7 @@ Then add the following configuration in your Server:
40
40
  ```typescript
41
41
  import {Configuration} from "@tsed/di";
42
42
  import "@tsed/scalar"; // import scalar Ts.ED module
43
- import {resolve} from "path";
43
+ import {resolve} from "node:path";
44
44
 
45
45
  @Configuration({
46
46
  scalar: [
package/src/constants.ts CHANGED
@@ -1,3 +1,5 @@
1
- import {join} from "path";
1
+ import {join} from "node:path";
2
2
 
3
- export const ROOT_DIR = join(import.meta.dirname, "..");
3
+ import {getValue} from "@tsed/core";
4
+
5
+ export const ROOT_DIR = join(getValue(import.meta, "dirname", ""), "..");
@@ -1,7 +1,7 @@
1
1
  import {basename} from "node:path";
2
+ import {join} from "node:path";
2
3
 
3
4
  import {context} from "@tsed/di";
4
- import {join} from "path";
5
5
 
6
6
  import {ScalarSettings} from "../interfaces/ScalarSettings.js";
7
7