Socket
Socket
Sign inDemoInstall

@deepkit/core

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepkit/core - npm Package Compare versions

Comparing version 1.0.1-alpha.61 to 1.0.1-alpha.63

6

dist/cjs/index.js

@@ -13,3 +13,7 @@ "use strict";

if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -16,0 +20,0 @@ if (k2 === undefined) k2 = k;

2

dist/cjs/src/compiler.js

@@ -112,3 +112,3 @@ "use strict";

exports.CompilerContext = CompilerContext;
CompilerContext.__type = ['maxReservedVariable', () => 10000, 'variableContext', () => ({}), 'preCode', () => "", 'initialiseVariables', () => [], 'indent', 'config', () => ({ indent: false }), () => __ΩPartial, () => CompilerContext, "config", () => ({}), 'constructor', 'name', 'reserveName', 'value', () => "constVar", 'reserveConst', () => "var", 'reserveVariable', 'functionCode', '', 'raw', 'code', 'format', 'args', 'build', '', 'buildAsync', '\'3!>"P&"LM3#<>$&3%>&&F3\'>(P)4)M3*>+PP7-..fo,"2*>/"00P&21&02P"23&21>4&05P&21>6"238&07P&28P"/90:P&2;&0<<P&28&@2="0>P&28&@2=P"/?0@5'];
CompilerContext.__type = ['maxReservedVariable', function () { return 10000; }, 'variableContext', function () { return {}; }, 'preCode', function () { return ''; }, 'initialiseVariables', function () { return []; }, 'indent', 'config', function () { return { indent: false }; }, () => __ΩPartial, () => CompilerContext, "config", () => ({}), 'constructor', 'name', 'reserveName', 'value', () => "constVar", 'reserveConst', () => "var", 'reserveVariable', 'functionCode', '', 'raw', 'code', 'format', 'args', 'build', '', 'buildAsync', '\'3!>"P&"LM3#<>$&3%>&&F3\'>(P)4)M3*>+PP7-..fo,"2*>/"00P&21&02P"23&21>4&05P&21>6"238&07P&28P"/90:P&2;&0<<P&28&@2="0>P&28&@2=P"/?0@5'];
//# sourceMappingURL=compiler.js.map

@@ -317,3 +317,3 @@ /**

/**
* Returns the human readable byte representation.
* Returns the human-readable byte representation.
*

@@ -320,0 +320,0 @@ * @public

@@ -8,5 +8,5 @@ "use strict";

exports.isIterable = exports.createDynamicClass = exports.inDebugMode = exports.getParentClass = exports.isPrototypeOfBase = exports.isConstructable = void 0;
var __ΩPropertyKey = ['P&\'+J'];
var __ΩObject = ['', 'constructor', 'toString', 'toLocaleString', 0, 'valueOf', () => __ΩPropertyKey, 'v', 'hasOwnProperty', 0, 'isPrototypeOf', () => __ΩPropertyKey, 'propertyIsEnumerable', 'PP"/!4"P&1#P&1$Pn%1&Pn\'2()1)Pn*2()1+Pn,2()1-M'];
var __ΩError = ['name', 'message', 'stack', 'P&4!&4"&4#8M'];
const __ΩPropertyKey = ['P&\'+J'];
const __ΩObject = ['', 'constructor', 'toString', 'toLocaleString', 0, 'valueOf', () => __ΩPropertyKey, 'v', 'hasOwnProperty', 0, 'isPrototypeOf', () => __ΩPropertyKey, 'propertyIsEnumerable', 'PP"/!4"P&1#P&1$Pn%1&Pn\'2()1)Pn*2()1+Pn,2()1-M'];
const __ΩError = ['name', 'message', 'stack', 'P&4!&4"&4#8M'];
/*

@@ -44,7 +44,7 @@ * Deepkit Framework

CustomError.__type = ['name', 'stack', 'message', () => "", 'constructor', '&3!&3"8P&2#:>$"0%5'];
var __ΩClassType = ['T', 'args', 'new', '"c!PP"@2"e#!1#M'];
const __ΩClassType = ['T', 'args', 'new', '"c!PP"@2"e#!1#M'];
exports.__ΩClassType = __ΩClassType;
var __ΩAbstractClassType = ['T', 'args', 'new', '"c!P"@2"e"!/#'];
const __ΩAbstractClassType = ['T', 'args', 'new', '"c!P"@2"e"!/#'];
exports.__ΩAbstractClassType = __ΩAbstractClassType;
var __ΩExtractClassType = ['T', () => __ΩAbstractClassType, 'l:e"!R!RPde#!h!!o""qk#\'QRb!Pde"!p)'];
const __ΩExtractClassType = ['T', () => __ΩAbstractClassType, 'l:e"!R!RPde#!h!!o""qk#\'QRb!Pde"!p)'];
exports.__ΩExtractClassType = __ΩExtractClassType;

@@ -664,3 +664,3 @@ /**

/**
* Returns the human readable byte representation.
* Returns the human-readable byte representation.
*

@@ -667,0 +667,0 @@ * @public

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.singleStack = exports.stack = exports.log = void 0;
var __ΩPropertyDescriptor = ['configurable', 'enumerable', 'value', 'writable', 'get', 'v', 'set', 'P)4!8)4"8"4#8)4$8P"1%P"2&$1\'M'];
var __ΩTypedPropertyDescriptor = ['T', 'enumerable', 'configurable', 'writable', 'value', '', 'get', 'set', 'b!P)4"8)4#8)4$8e"!4%8Pe#!/&4\'8Pe#!2%$/&4(8M'];
const __ΩPropertyDescriptor = ['configurable', 'enumerable', 'value', 'writable', 'get', 'v', 'set', 'P)4!8)4"8"4#8)4$8P"1%P"2&$1\'M'];
const __ΩTypedPropertyDescriptor = ['T', 'enumerable', 'configurable', 'writable', 'value', '', 'get', 'set', 'b!P)4"8)4#8)4$8e"!4%8Pe#!/&4\'8Pe#!2%$/&4(8M'];
/*

@@ -7,0 +7,0 @@ * Deepkit Framework

@@ -69,3 +69,3 @@ "use strict";

exports.AsyncEventEmitter = AsyncEventEmitter;
AsyncEventEmitter.__type = ['T', () => __ΩAsyncSubscriber, 'subscribers', () => [], () => AsyncEventEmitter, 'parent', 'constructor', () => __ΩAsyncSubscriber, 'callback', () => __ΩAsyncEventSubscription, 'subscribe', 'event', 'emit', 'hasSubscriptions', 'b!e!!o""F3#<>$PP"7%2&8<"0\'Pe"!o("2)n*0+Pe"!2,$`0-P)0.5'];
AsyncEventEmitter.__type = ['T', () => __ΩAsyncSubscriber, 'subscribers', function () { return []; }, () => AsyncEventEmitter, 'parent', 'constructor', () => __ΩAsyncSubscriber, 'callback', () => __ΩAsyncEventSubscription, 'subscribe', 'event', 'emit', 'hasSubscriptions', 'b!e!!o""F3#<>$PP"7%2&8<"0\'Pe"!o("2)n*0+Pe"!2,$`0-P)0.5'];
//# sourceMappingURL=emitter.js.map

@@ -47,3 +47,3 @@ "use strict";

exports.ParsedHost = ParsedHost;
ParsedHost.__type = ['host', () => "127.0.0.1", 'port', () => 0, 'unixSocket', () => "", 'toString', 'secure', () => false, 'getWebSocketUrl', () => false, 'getHttpUrl', '&3!>"\'3#>$&3%>&!!!P&0\'P)2(>)"0*P)2(>+"0,5'];
ParsedHost.__type = ['host', function () { return '127.0.0.1'; }, 'port', function () { return 0; }, 'unixSocket', function () { return ''; }, 'toString', 'secure', () => false, 'getWebSocketUrl', () => false, 'getHttpUrl', '&3!>"\'3#>$&3%>&!!!P&0\'P)2(>)"0*P)2(>+"0,5'];
function parseHost(hostWithIpOrUnixPath) {

@@ -50,0 +50,0 @@ const parsedHost = new ParsedHost();

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeStrings = exports.extractMethodBody = exports.extractParameters = void 0;
var { __ΩClassType } = require("./core");
const { __ΩClassType } = require("./core");
const COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;

@@ -6,0 +6,0 @@ const DEFAULT_PARAMS = /=[^,]+/mg;

@@ -32,3 +32,3 @@ "use strict";

exports.Timer = Timer;
Timer.__type = ['timeoutTimers', () => [], '', 'cb', 'timeout', 'setTimeout', 'clear', '"F3!<>"PP$/#2$\'2%"0&P"0\'5'];
Timer.__type = ['timeoutTimers', function () { return []; }, '', 'cb', 'timeout', 'setTimeout', 'clear', '"F3!<>"PP$/#2$\'2%"0&P"0\'5'];
//# sourceMappingURL=timer.js.map

@@ -420,3 +420,3 @@ "use strict";

}
Model1.__type = ['id', () => 0, '\'3!>"5'];
Model1.__type = ['id', function () { return 0; }, '\'3!>"5'];
class Base {

@@ -434,3 +434,3 @@ }

}
Model2.__type = ['id', () => 0, 'model2', '\'3!>"P"0#5'];
Model2.__type = ['id', function () { return 0; }, 'model2', '\'3!>"P"0#5'];
const model1 = new Model1;

@@ -437,0 +437,0 @@ model1.id = 22;

@@ -32,3 +32,3 @@ "use strict";

User.test = uuid();
User.__type = ['id', () => uuid(), 'username', 'nothing', () => "{", 'constructor', 'doSomething', '&3!>"&3#8P&2$>%"0&P$0\'5'];
User.__type = ['id', function () { return uuid(); }, 'username', 'nothing', () => "{", 'constructor', 'doSomething', '&3!>"&3#8P&2$>%"0&P$0\'5'];
const code = (0, reflection_1.extractMethodBody)(User.toString(), 'constructor');

@@ -35,0 +35,0 @@ (0, globals_1.expect)(code.trim()).toBe('this.id=uuid();this.bla=;');

@@ -108,3 +108,3 @@ var __ΩPartial = ['T', 'l+e#!e"!fRb!Pde"!gN#"'];

}
CompilerContext.__type = ['maxReservedVariable', () => 10000, 'variableContext', () => ({}), 'preCode', () => "", 'initialiseVariables', () => [], 'indent', 'config', () => ({ indent: false }), () => __ΩPartial, () => CompilerContext, "config", () => ({}), 'constructor', 'name', 'reserveName', 'value', () => "constVar", 'reserveConst', () => "var", 'reserveVariable', 'functionCode', '', 'raw', 'code', 'format', 'args', 'build', '', 'buildAsync', '\'3!>"P&"LM3#<>$&3%>&&F3\'>(P)4)M3*>+PP7-..fo,"2*>/"00P&21&02P"23&21>4&05P&21>6"238&07P&28P"/90:P&2;&0<<P&28&@2="0>P&28&@2=P"/?0@5'];
CompilerContext.__type = ['maxReservedVariable', function () { return 10000; }, 'variableContext', function () { return {}; }, 'preCode', function () { return ''; }, 'initialiseVariables', function () { return []; }, 'indent', 'config', function () { return { indent: false }; }, () => __ΩPartial, () => CompilerContext, "config", () => ({}), 'constructor', 'name', 'reserveName', 'value', () => "constVar", 'reserveConst', () => "var", 'reserveVariable', 'functionCode', '', 'raw', 'code', 'format', 'args', 'build', '', 'buildAsync', '\'3!>"P&"LM3#<>$&3%>&&F3\'>(P)4)M3*>+PP7-..fo,"2*>/"00P&21&02P"23&21>4&05P&21>6"238&07P&28P"/90:P&2;&0<<P&28&@2="0>P&28&@2=P"/?0@5'];
//# sourceMappingURL=compiler.js.map

@@ -317,3 +317,3 @@ /**

/**
* Returns the human readable byte representation.
* Returns the human-readable byte representation.
*

@@ -320,0 +320,0 @@ * @public

@@ -1,4 +0,4 @@

var __ΩPropertyKey = ['P&\'+J'];
var __ΩObject = ['', 'constructor', 'toString', 'toLocaleString', 0, 'valueOf', () => __ΩPropertyKey, 'v', 'hasOwnProperty', 0, 'isPrototypeOf', () => __ΩPropertyKey, 'propertyIsEnumerable', 'PP"/!4"P&1#P&1$Pn%1&Pn\'2()1)Pn*2()1+Pn,2()1-M'];
var __ΩError = ['name', 'message', 'stack', 'P&4!&4"&4#8M'];
const __ΩPropertyKey = ['P&\'+J'];
const __ΩObject = ['', 'constructor', 'toString', 'toLocaleString', 0, 'valueOf', () => __ΩPropertyKey, 'v', 'hasOwnProperty', 0, 'isPrototypeOf', () => __ΩPropertyKey, 'propertyIsEnumerable', 'PP"/!4"P&1#P&1$Pn%1&Pn\'2()1)Pn*2()1+Pn,2()1-M'];
const __ΩError = ['name', 'message', 'stack', 'P&4!&4"&4#8M'];
/*

@@ -35,8 +35,8 @@ * Deepkit Framework

CustomError.__type = ['name', 'stack', 'message', () => "", 'constructor', '&3!&3"8P&2#:>$"0%5'];
var __ΩClassType = ['T', 'args', 'new', '"c!PP"@2"e#!1#M'];
export { __ΩClassType };
var __ΩAbstractClassType = ['T', 'args', 'new', '"c!P"@2"e"!/#'];
export { __ΩAbstractClassType };
var __ΩExtractClassType = ['T', () => __ΩAbstractClassType, 'l:e"!R!RPde#!h!!o""qk#\'QRb!Pde"!p)'];
export { __ΩExtractClassType };
const __ΩClassType = ['T', 'args', 'new', '"c!PP"@2"e#!1#M'];
export { __ΩClassType as __ΩClassType };
const __ΩAbstractClassType = ['T', 'args', 'new', '"c!P"@2"e"!/#'];
export { __ΩAbstractClassType as __ΩAbstractClassType };
const __ΩExtractClassType = ['T', () => __ΩAbstractClassType, 'l:e"!R!RPde#!h!!o""qk#\'QRb!Pde"!p)'];
export { __ΩExtractClassType as __ΩExtractClassType };
/**

@@ -612,3 +612,3 @@ * Returns the class name either of the class definition or of the class of an instance.

/**
* Returns the human readable byte representation.
* Returns the human-readable byte representation.
*

@@ -615,0 +615,0 @@ * @public

@@ -1,3 +0,3 @@

var __ΩPropertyDescriptor = ['configurable', 'enumerable', 'value', 'writable', 'get', 'v', 'set', 'P)4!8)4"8"4#8)4$8P"1%P"2&$1\'M'];
var __ΩTypedPropertyDescriptor = ['T', 'enumerable', 'configurable', 'writable', 'value', '', 'get', 'set', 'b!P)4"8)4#8)4$8e"!4%8Pe#!/&4\'8Pe#!2%$/&4(8M'];
const __ΩPropertyDescriptor = ['configurable', 'enumerable', 'value', 'writable', 'get', 'v', 'set', 'P)4!8)4"8"4#8)4$8P"1%P"2&$1\'M'];
const __ΩTypedPropertyDescriptor = ['T', 'enumerable', 'configurable', 'writable', 'value', '', 'get', 'set', 'b!P)4"8)4#8)4$8e"!4%8Pe#!/&4\'8Pe#!2%$/&4(8M'];
/*

@@ -4,0 +4,0 @@ * Deepkit Framework

@@ -13,3 +13,3 @@ /*

var __ΩAsyncEventSubscription = ['', 'unsubscribe', 'PP$/!4"M'];
export { __ΩAsyncEventSubscription };
export { __ΩAsyncEventSubscription as __ΩAsyncEventSubscription };
let asyncId = 0;

@@ -65,3 +65,3 @@ export class AsyncEmitterEvent {

}
AsyncEventEmitter.__type = ['T', () => __ΩAsyncSubscriber, 'subscribers', () => [], () => AsyncEventEmitter, 'parent', 'constructor', () => __ΩAsyncSubscriber, 'callback', () => __ΩAsyncEventSubscription, 'subscribe', 'event', 'emit', 'hasSubscriptions', 'b!e!!o""F3#<>$PP"7%2&8<"0\'Pe"!o("2)n*0+Pe"!2,$`0-P)0.5'];
AsyncEventEmitter.__type = ['T', () => __ΩAsyncSubscriber, 'subscribers', function () { return []; }, () => AsyncEventEmitter, 'parent', 'constructor', () => __ΩAsyncSubscriber, 'callback', () => __ΩAsyncEventSubscription, 'subscribe', 'event', 'emit', 'hasSubscriptions', 'b!e!!o""F3#<>$PP"7%2&8<"0\'Pe"!o("2)n*0+Pe"!2,$`0-P)0.5'];
//# sourceMappingURL=emitter.js.map

@@ -43,3 +43,3 @@ /*

}
ParsedHost.__type = ['host', () => "127.0.0.1", 'port', () => 0, 'unixSocket', () => "", 'toString', 'secure', () => false, 'getWebSocketUrl', () => false, 'getHttpUrl', '&3!>"\'3#>$&3%>&!!!P&0\'P)2(>)"0*P)2(>+"0,5'];
ParsedHost.__type = ['host', function () { return '127.0.0.1'; }, 'port', function () { return 0; }, 'unixSocket', function () { return ''; }, 'toString', 'secure', () => false, 'getWebSocketUrl', () => false, 'getHttpUrl', '&3!>"\'3#>$&3%>&!!!P&0\'P)2(>)"0*P)2(>+"0,5'];
export function parseHost(hostWithIpOrUnixPath) {

@@ -46,0 +46,0 @@ const parsedHost = new ParsedHost();

@@ -28,3 +28,3 @@ /*

}
Timer.__type = ['timeoutTimers', () => [], '', 'cb', 'timeout', 'setTimeout', 'clear', '"F3!<>"PP$/#2$\'2%"0&P"0\'5'];
Timer.__type = ['timeoutTimers', function () { return []; }, '', 'cb', 'timeout', 'setTimeout', 'clear', '"F3!<>"PP$/#2$\'2%"0&P"0\'5'];
//# sourceMappingURL=timer.js.map

@@ -418,3 +418,3 @@ import { expect, test } from '@jest/globals';

}
Model1.__type = ['id', () => 0, '\'3!>"5'];
Model1.__type = ['id', function () { return 0; }, '\'3!>"5'];
class Base {

@@ -432,3 +432,3 @@ }

}
Model2.__type = ['id', () => 0, 'model2', '\'3!>"P"0#5'];
Model2.__type = ['id', function () { return 0; }, 'model2', '\'3!>"P"0#5'];
const model1 = new Model1;

@@ -435,0 +435,0 @@ model1.id = 22;

@@ -30,3 +30,3 @@ import { expect, test } from '@jest/globals';

User.test = uuid();
User.__type = ['id', () => uuid(), 'username', 'nothing', () => "{", 'constructor', 'doSomething', '&3!>"&3#8P&2$>%"0&P$0\'5'];
User.__type = ['id', function () { return uuid(); }, 'username', 'nothing', () => "{", 'constructor', 'doSomething', '&3!>"&3#8P&2$>%"0&P$0\'5'];
const code = extractMethodBody(User.toString(), 'constructor');

@@ -33,0 +33,0 @@ expect(code.trim()).toBe('this.id=uuid();this.bla=;');

{
"name": "@deepkit/core",
"version": "1.0.1-alpha.61",
"version": "1.0.1-alpha.63",
"description": "Deepkit core library",

@@ -40,3 +40,3 @@ "type": "commonjs",

},
"gitHead": "30e1de34842ab176ce108f3100f12cf550ddf531"
"gitHead": "c39860f0ef10fe98cc509dd2c795cc8e1cb30e3a"
}

@@ -619,3 +619,3 @@ /*

/**
* Returns the human readable byte representation.
* Returns the human-readable byte representation.
*

@@ -622,0 +622,0 @@ * @public

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc