@powerlines/deepkit 0.9.93 → 0.9.95

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,6 +1,6 @@
1
1
  import { n as __require, t as __commonJSMin } from "./rolldown-runtime-DyRPXdT2.mjs";
2
2
  import { n as TypeNumberBrand, t as ReflectionOp } from "./type-LC3QSAmx.mjs";
3
- import { c as Resolver, l as debug, n as getConfigResolver, o as reflectionModeMatcher, u as debug2 } from "./config-C3MyB_IS.mjs";
3
+ import { c as Resolver, l as debug, n as getConfigResolver, o as reflectionModeMatcher, u as debug2 } from "./config-BlXGGlxS.mjs";
4
4
  import ts, { isBigIntLiteral } from "typescript";
5
5
 
6
6
  //#region ../../../node_modules/.pnpm/@typescript+vfs@1.6.4_typescript@6.0.3/node_modules/@typescript/vfs/dist/vfs.cjs.production.min.js
@@ -5254,7 +5254,8 @@ var ReflectionTransformer = class {
5254
5254
  return this.f.updateCallExpression(node, node.expression, node.typeArguments, this.f.createNodeArray(args));
5255
5255
  }
5256
5256
  }
5257
- if (isArrowFunction(getAssignTypeExpression(node.expression) || node.expression)) return node;
5257
+ const expressionToCheck = getAssignTypeExpression(node.expression) || node.expression;
5258
+ if (isArrowFunction(expressionToCheck)) return node;
5258
5259
  const typeExpressions = [];
5259
5260
  for (const a of node.typeArguments) {
5260
5261
  const type = this.getTypeOfType(a);
@@ -5321,12 +5322,14 @@ var ReflectionTransformer = class {
5321
5322
  handledIdentifier.push(getIdentifierName(imp.identifier));
5322
5323
  if (this.getModuleType() === "cjs") {
5323
5324
  const test = this.f.createIdentifier(getIdentifierName(imp.identifier));
5324
- const typeDeclWithComment = addSyntheticLeadingComment(this.f.createVariableStatement(void 0, this.f.createVariableDeclarationList([this.f.createVariableDeclaration(this.f.createObjectBindingPattern([this.f.createBindingElement(void 0, void 0, test)]), void 0, void 0, this.f.createCallExpression(this.f.createIdentifier("require"), void 0, [imp.from]))], NodeFlags.Const)), SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
5325
+ const variable = this.f.createVariableStatement(void 0, this.f.createVariableDeclarationList([this.f.createVariableDeclaration(this.f.createObjectBindingPattern([this.f.createBindingElement(void 0, void 0, test)]), void 0, void 0, this.f.createCallExpression(this.f.createIdentifier("require"), void 0, [imp.from]))], NodeFlags.Const));
5326
+ const typeDeclWithComment = addSyntheticLeadingComment(variable, SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
5325
5327
  newTopStatements.push(typeDeclWithComment);
5326
5328
  } else {
5327
5329
  const specifier = this.f.createImportSpecifier(false, void 0, imp.identifier);
5328
5330
  const namedImports = this.f.createNamedImports([specifier]);
5329
- const typeDeclWithComment = addSyntheticLeadingComment(this.f.createImportDeclaration(void 0, this.f.createImportClause(false, void 0, namedImports), imp.from), SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
5331
+ const importStatement = this.f.createImportDeclaration(void 0, this.f.createImportClause(false, void 0, namedImports), imp.from);
5332
+ const typeDeclWithComment = addSyntheticLeadingComment(importStatement, SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
5330
5333
  newTopStatements.push(typeDeclWithComment);
5331
5334
  }
5332
5335
  }
@@ -6554,4 +6557,4 @@ const declarationTransformer = function deepkitDeclarationTransformer(context) {
6554
6557
 
6555
6558
  //#endregion
6556
6559
  export { declarationTransformer as a, packSizeByte as c, debugPackStruct as i, transformer as l, DeclarationTransformer as n, encodeOps as o, ReflectionTransformer as r, packSize as s, Cache as t };
6557
- //# sourceMappingURL=compiler-dp8WjG51.mjs.map
6560
+ //# sourceMappingURL=compiler-8hCF4N7g.mjs.map
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require('./rolldown-runtime-fl3r8ClO.cjs');
2
2
  const require_type = require('./type-CgFyFu75.cjs');
3
- const require_config = require('./config-DGj6raPn.cjs');
3
+ const require_config = require('./config-Cm6GJCxo.cjs');
4
4
  let typescript = require("typescript");
5
5
  let typescript$1 = require_rolldown_runtime.__toESM(typescript, 1);
6
6
  typescript = require_rolldown_runtime.__toESM(typescript);
@@ -5256,7 +5256,8 @@ var ReflectionTransformer = class {
5256
5256
  return this.f.updateCallExpression(node, node.expression, node.typeArguments, this.f.createNodeArray(args));
5257
5257
  }
5258
5258
  }
5259
- if (isArrowFunction(getAssignTypeExpression(node.expression) || node.expression)) return node;
5259
+ const expressionToCheck = getAssignTypeExpression(node.expression) || node.expression;
5260
+ if (isArrowFunction(expressionToCheck)) return node;
5260
5261
  const typeExpressions = [];
5261
5262
  for (const a of node.typeArguments) {
5262
5263
  const type = this.getTypeOfType(a);
@@ -5323,12 +5324,14 @@ var ReflectionTransformer = class {
5323
5324
  handledIdentifier.push(getIdentifierName(imp.identifier));
5324
5325
  if (this.getModuleType() === "cjs") {
5325
5326
  const test = this.f.createIdentifier(getIdentifierName(imp.identifier));
5326
- const typeDeclWithComment = addSyntheticLeadingComment(this.f.createVariableStatement(void 0, this.f.createVariableDeclarationList([this.f.createVariableDeclaration(this.f.createObjectBindingPattern([this.f.createBindingElement(void 0, void 0, test)]), void 0, void 0, this.f.createCallExpression(this.f.createIdentifier("require"), void 0, [imp.from]))], NodeFlags.Const)), SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
5327
+ const variable = this.f.createVariableStatement(void 0, this.f.createVariableDeclarationList([this.f.createVariableDeclaration(this.f.createObjectBindingPattern([this.f.createBindingElement(void 0, void 0, test)]), void 0, void 0, this.f.createCallExpression(this.f.createIdentifier("require"), void 0, [imp.from]))], NodeFlags.Const));
5328
+ const typeDeclWithComment = addSyntheticLeadingComment(variable, SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
5327
5329
  newTopStatements.push(typeDeclWithComment);
5328
5330
  } else {
5329
5331
  const specifier = this.f.createImportSpecifier(false, void 0, imp.identifier);
5330
5332
  const namedImports = this.f.createNamedImports([specifier]);
5331
- const typeDeclWithComment = addSyntheticLeadingComment(this.f.createImportDeclaration(void 0, this.f.createImportClause(false, void 0, namedImports), imp.from), SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
5333
+ const importStatement = this.f.createImportDeclaration(void 0, this.f.createImportClause(false, void 0, namedImports), imp.from);
5334
+ const typeDeclWithComment = addSyntheticLeadingComment(importStatement, SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
5332
5335
  newTopStatements.push(typeDeclWithComment);
5333
5336
  }
5334
5337
  }
@@ -1964,7 +1964,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1964
1964
  };
1965
1965
  const extglobClose = (token) => {
1966
1966
  const literal = input.slice(token.startIndex, state.index + 1);
1967
- const analysis = analyzeRepeatedExtglob(input.slice(token.startIndex + 2, state.index), opts);
1967
+ const body = input.slice(token.startIndex + 2, state.index);
1968
+ const analysis = analyzeRepeatedExtglob(body, opts);
1968
1969
  if ((token.type === "plus" || token.type === "star") && analysis.risky) {
1969
1970
  const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
1970
1971
  const open = tokens[token.tokensIndex];
@@ -2090,7 +2091,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2090
2091
  if (inner.includes(":")) {
2091
2092
  const idx = prev.value.lastIndexOf("[");
2092
2093
  const pre = prev.value.slice(0, idx);
2093
- const posix = POSIX_REGEX_SOURCE[prev.value.slice(idx + 2)];
2094
+ const rest = prev.value.slice(idx + 2);
2095
+ const posix = POSIX_REGEX_SOURCE[rest];
2094
2096
  if (posix) {
2095
2097
  prev.value = pre + posix;
2096
2098
  state.backtrack = true;
@@ -3615,4 +3617,4 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
3615
3617
 
3616
3618
  //#endregion
3617
3619
  export { parseRawMode as a, Resolver as c, level as i, debug as l, getConfigResolver as n, reflectionModeMatcher as o, isObject as r, reflectionModes as s, defaultExcluded as t, debug2 as u };
3618
- //# sourceMappingURL=config-C3MyB_IS.mjs.map
3620
+ //# sourceMappingURL=config-BlXGGlxS.mjs.map
@@ -1966,7 +1966,8 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
1966
1966
  };
1967
1967
  const extglobClose = (token) => {
1968
1968
  const literal = input.slice(token.startIndex, state.index + 1);
1969
- const analysis = analyzeRepeatedExtglob(input.slice(token.startIndex + 2, state.index), opts);
1969
+ const body = input.slice(token.startIndex + 2, state.index);
1970
+ const analysis = analyzeRepeatedExtglob(body, opts);
1970
1971
  if ((token.type === "plus" || token.type === "star") && analysis.risky) {
1971
1972
  const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
1972
1973
  const open = tokens[token.tokensIndex];
@@ -2092,7 +2093,8 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
2092
2093
  if (inner.includes(":")) {
2093
2094
  const idx = prev.value.lastIndexOf("[");
2094
2095
  const pre = prev.value.slice(0, idx);
2095
- const posix = POSIX_REGEX_SOURCE[prev.value.slice(idx + 2)];
2096
+ const rest = prev.value.slice(idx + 2);
2097
+ const posix = POSIX_REGEX_SOURCE[rest];
2096
2098
  if (posix) {
2097
2099
  prev.value = pre + posix;
2098
2100
  state.backtrack = true;
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_compiler = require('../compiler-C6ctiY5T.cjs');
2
+ const require_compiler = require('../compiler-EgkBSwnY.cjs');
3
3
 
4
4
  exports.Cache = require_compiler.Cache;
5
5
  exports.DeclarationTransformer = require_compiler.DeclarationTransformer;
@@ -1,3 +1,3 @@
1
- import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../compiler-dp8WjG51.mjs";
1
+ import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../compiler-8hCF4N7g.mjs";
2
2
 
3
3
  export { Cache, DeclarationTransformer, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_config = require('../config-DGj6raPn.cjs');
2
+ const require_config = require('../config-Cm6GJCxo.cjs');
3
3
 
4
4
  exports.defaultExcluded = require_config.defaultExcluded;
5
5
  exports.getConfigResolver = require_config.getConfigResolver;
@@ -1,3 +1,3 @@
1
- import { a as parseRawMode, i as level, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../config-C3MyB_IS.mjs";
1
+ import { a as parseRawMode, i as level, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../config-BlXGGlxS.mjs";
2
2
 
3
3
  export { defaultExcluded, getConfigResolver, isObject, level, parseRawMode, reflectionModeMatcher, reflectionModes };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_rolldown_runtime = require('../rolldown-runtime-fl3r8ClO.cjs');
3
- const require_compiler = require('../compiler-C6ctiY5T.cjs');
4
- const require_config = require('../config-DGj6raPn.cjs');
3
+ const require_compiler = require('../compiler-EgkBSwnY.cjs');
4
+ const require_config = require('../config-Cm6GJCxo.cjs');
5
5
  let typescript = require("typescript");
6
6
  typescript = require_rolldown_runtime.__toESM(typescript, 1);
7
7
 
@@ -1,5 +1,5 @@
1
- import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../compiler-dp8WjG51.mjs";
2
- import { a as parseRawMode, i as level, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../config-C3MyB_IS.mjs";
1
+ import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../compiler-8hCF4N7g.mjs";
2
+ import { a as parseRawMode, i as level, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../config-BlXGGlxS.mjs";
3
3
  import ts from "typescript";
4
4
 
5
5
  //#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
@@ -6202,7 +6202,8 @@ var ReflectionClass = class ReflectionClass {
6202
6202
  };
6203
6203
  if (type.kind !== ReflectionKind.class) throw new Error(`Given class is not a class but kind ${ReflectionKind[type.kind]}. classType: ${require_types.stringifyValueWithType(classType)}`);
6204
6204
  const parentProto = Object.getPrototypeOf(classType.prototype);
6205
- const reflectionClass = new ReflectionClass(type, parentProto && parentProto.constructor !== Object ? ReflectionClass.from(parentProto, type.extendsArguments) : void 0);
6205
+ const parentReflectionClass = parentProto && parentProto.constructor !== Object ? ReflectionClass.from(parentProto, type.extendsArguments) : void 0;
6206
+ const reflectionClass = new ReflectionClass(type, parentReflectionClass);
6206
6207
  if (args.length === 0) {
6207
6208
  classType.prototype[reflectionClassSymbol] = reflectionClass;
6208
6209
  return reflectionClass;
@@ -12103,7 +12104,8 @@ function serializeObjectLiteral(type, state) {
12103
12104
  const name = state.namingStrategy.getPropertyName(member, state.registry.serializer.name);
12104
12105
  const readName = getNameExpression(state.isDeserialization ? name : memberNameToString(member.name), state);
12105
12106
  existing.push(readName);
12106
- const setter = new ContainerAccessor(v, getNameExpression(state.isDeserialization ? memberNameToString(member.name) : name, state));
12107
+ const writeName = getNameExpression(state.isDeserialization ? memberNameToString(member.name) : name, state);
12108
+ const setter = new ContainerAccessor(v, writeName);
12107
12109
  const propertyState = state.fork(setter, new ContainerAccessor(state.accessor, readName)).extendPath(String(member.name));
12108
12110
  const staticDefault = getStaticDefaultCodeForProperty(member, setter, state);
12109
12111
  if (hasEmbedded(member.type)) lines.push(executeTemplates(propertyState, member.type));
@@ -6199,7 +6199,8 @@ var ReflectionClass = class ReflectionClass {
6199
6199
  };
6200
6200
  if (type.kind !== ReflectionKind.class) throw new Error(`Given class is not a class but kind ${ReflectionKind[type.kind]}. classType: ${stringifyValueWithType(classType)}`);
6201
6201
  const parentProto = Object.getPrototypeOf(classType.prototype);
6202
- const reflectionClass = new ReflectionClass(type, parentProto && parentProto.constructor !== Object ? ReflectionClass.from(parentProto, type.extendsArguments) : void 0);
6202
+ const parentReflectionClass = parentProto && parentProto.constructor !== Object ? ReflectionClass.from(parentProto, type.extendsArguments) : void 0;
6203
+ const reflectionClass = new ReflectionClass(type, parentReflectionClass);
6203
6204
  if (args.length === 0) {
6204
6205
  classType.prototype[reflectionClassSymbol] = reflectionClass;
6205
6206
  return reflectionClass;
@@ -12100,7 +12101,8 @@ function serializeObjectLiteral(type, state) {
12100
12101
  const name = state.namingStrategy.getPropertyName(member, state.registry.serializer.name);
12101
12102
  const readName = getNameExpression(state.isDeserialization ? name : memberNameToString(member.name), state);
12102
12103
  existing.push(readName);
12103
- const setter = new ContainerAccessor(v, getNameExpression(state.isDeserialization ? memberNameToString(member.name) : name, state));
12104
+ const writeName = getNameExpression(state.isDeserialization ? memberNameToString(member.name) : name, state);
12105
+ const setter = new ContainerAccessor(v, writeName);
12104
12106
  const propertyState = state.fork(setter, new ContainerAccessor(state.accessor, readName)).extendPath(String(member.name));
12105
12107
  const staticDefault = getStaticDefaultCodeForProperty(member, setter, state);
12106
12108
  if (hasEmbedded(member.type)) lines.push(executeTemplates(propertyState, member.type));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/deepkit",
3
- "version": "0.9.93",
3
+ "version": "0.9.95",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["deepkit", "powerlines", "storm-software"],
@@ -114,15 +114,15 @@
114
114
  "bin": { "deepkit-install": "bin/deepkit-install.cjs" },
115
115
  "files": ["bin", "dist", "schemas"],
116
116
  "dependencies": {
117
- "@powerlines/core": "^0.48.61",
118
- "@storm-software/config-tools": "^1.190.83",
119
- "@stryke/capnp": "^0.12.121",
120
- "@stryke/fs": "^0.33.95",
121
- "@stryke/helpers": "^0.10.34",
122
- "@stryke/json": "^0.15.18",
123
- "@stryke/path": "^0.29.21",
124
- "@stryke/type-checks": "^0.6.27",
125
- "@stryke/types": "^0.12.22",
117
+ "@powerlines/core": "^0.48.63",
118
+ "@storm-software/config-tools": "^1.190.89",
119
+ "@stryke/capnp": "^0.12.122",
120
+ "@stryke/fs": "^0.33.96",
121
+ "@stryke/helpers": "^0.10.35",
122
+ "@stryke/json": "^0.15.19",
123
+ "@stryke/path": "^0.29.22",
124
+ "@stryke/type-checks": "^0.6.28",
125
+ "@stryke/types": "^0.12.23",
126
126
  "defu": "^6.1.7",
127
127
  "esbuild": "^0.28.1",
128
128
  "jiti": "^2.7.0",
@@ -134,7 +134,7 @@
134
134
  "@deepkit/type-compiler": "1.0.5",
135
135
  "@deepkit/type-spec": "1.0.1",
136
136
  "@types/node": "^25.9.4",
137
- "rolldown": "^1.1.3",
137
+ "rolldown": "^1.1.4",
138
138
  "tsdown": "^0.22.3"
139
139
  },
140
140
  "peerDependencies": { "esbuild": "*", "rolldown": "*" },
@@ -143,5 +143,5 @@
143
143
  "rolldown": { "optional": true }
144
144
  },
145
145
  "publishConfig": { "access": "public" },
146
- "gitHead": "620d5b7c51f4d8b58e79ec602b222311439e7f33"
146
+ "gitHead": "237e375dd938a17d2d363344b4d2c38c0173a76e"
147
147
  }