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.75 to 1.0.1-alpha.77

6

dist/cjs/src/compiler.js

@@ -18,6 +18,6 @@ "use strict";

constructor(config = {}) {
this.context = new Map();
this.constVariables = new Map();
this.context = (Map.Ω = [['&'], ['"']], new Map());
this.constVariables = (Map.Ω = [['"'], ['&']], new Map());
this.maxReservedVariable = 10000;
this.reservedNames = new Set();
this.reservedNames = (Set.Ω = [['&']], new Set());
this.variableContext = {};

@@ -24,0 +24,0 @@ /**

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

async function sleep(seconds) {
return new Promise(__assignType(resolve => setTimeout(resolve, seconds * 1000), ['resolve', '', 'P"2!"/"']));
return (Promise.Ω = [['$']], new Promise(__assignType(resolve => setTimeout(resolve, seconds * 1000), ['resolve', '', 'P"2!"/"'])));
}

@@ -547,3 +547,3 @@ exports.sleep = sleep;

try {
return await new Promise(__assignType(async (resolve, reject) => {
return await (Promise.Ω = [[() => executor, 'value', '', 'resolve', 'error', 'reject', 'Pdi!PPh#!2"$/#2$P"2%$/#2&P$$`J/#qe!!!j']], new Promise(__assignType(async (resolve, reject) => {
try {

@@ -555,3 +555,3 @@ await executor(resolve, reject);

}
}, ['resolve', 'reject', '', 'P"2!"2""/#']));
}, ['resolve', 'reject', '', 'P"2!"2""/#'])));
}

@@ -558,0 +558,0 @@ catch (error) {

@@ -8,2 +8,4 @@ "use strict";

}
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'];
/*

@@ -19,3 +21,3 @@ * Deepkit Framework

const iterators_js_1 = require("./iterators.js");
const cacheEnumLabels = new Map();
const cacheEnumLabels = (Map.Ω = [[() => __ΩObject, 'n!'], ['&F']], new Map());
/**

@@ -50,3 +52,3 @@ * Returns the enum label for a given enum value.

getEnumLabels.__type = ['enumDefinition', 'getEnumLabels', 'P"2!"/"'];
const cacheEnumKeys = new Map();
const cacheEnumKeys = (Map.Ω = [[() => __ΩObject, 'n!'], ['&F']], new Map());
/**

@@ -71,3 +73,3 @@ * Returns all possible enum keys.

function getEnumKeyLabelMap(enumDefinition) {
const map = new Map();
const map = (Map.Ω = [['"'], ['&']], new Map());
const keys = getEnumValues(enumDefinition);

@@ -74,0 +76,0 @@ const labels = getEnumLabels(enumDefinition);

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

}
return new Promise(__assignType((resolve, reject) => {
return (Promise.Ω = [['$']], new Promise(__assignType((resolve, reject) => {
const ourTake = () => {

@@ -72,3 +72,3 @@ LOCKS[this.id].time = Date.now() / 1000;

}
}, ['resolve', 'reject', '', 'P"2!"2""/#']));
}, ['resolve', 'reject', '', 'P"2!"2""/#'])));
}

@@ -113,3 +113,3 @@ isLocked() {

exports.ProcessLock = ProcessLock;
ProcessLock.__type = ['ttlTimeout', 'id', 'constructor', 'ttl', () => 0, 'timeout', () => 0, 'acquire', 'isLocked', () => 0, 'tryLock', 'unlock', '"3!<P&2":"0#P\'2$>%\'2&>\'"0(P"0)P\'2$>*"0+P"0,5'];
ProcessLock.__type = ['ttlTimeout', 'id', 'constructor', 'ttl', () => 0, 'timeout', () => 0, 'acquire', 'isLocked', () => 0, 'tryLock', 'unlock', '"3!<P&2":9"0#P\'2$>%\'2&>\'"0(P"0)P\'2$>*"0+P"0,5'];
class ProcessLocker {

@@ -116,0 +116,0 @@ /**

@@ -15,6 +15,6 @@ const __ΩPartial = ['T', 'l+e#!e"!fRb!Pde"!gN#"'];

constructor(config = {}) {
this.context = new Map();
this.constVariables = new Map();
this.context = (Map.Ω = [['&'], ['"']], new Map());
this.constVariables = (Map.Ω = [['"'], ['&']], new Map());
this.maxReservedVariable = 10000;
this.reservedNames = new Set();
this.reservedNames = (Set.Ω = [['&']], new Set());
this.variableContext = {};

@@ -21,0 +21,0 @@ /**

@@ -337,3 +337,3 @@ function __assignType(fn, args) {

export async function sleep(seconds) {
return new Promise(__assignType(resolve => setTimeout(resolve, seconds * 1000), ['resolve', '', 'P"2!"/"']));
return (Promise.Ω = [['$']], new Promise(__assignType(resolve => setTimeout(resolve, seconds * 1000), ['resolve', '', 'P"2!"/"'])));
}

@@ -505,3 +505,3 @@ sleep.__type = ['seconds', 'sleep', 'P\'2!$`/"'];

try {
return await new Promise(__assignType(async (resolve, reject) => {
return await (Promise.Ω = [[() => executor, 'value', '', 'resolve', 'error', 'reject', 'Pdi!PPh#!2"$/#2$P"2%$/#2&P$$`J/#qe!!!j']], new Promise(__assignType(async (resolve, reject) => {
try {

@@ -513,3 +513,3 @@ await executor(resolve, reject);

}
}, ['resolve', 'reject', '', 'P"2!"2""/#']));
}, ['resolve', 'reject', '', 'P"2!"2""/#'])));
}

@@ -516,0 +516,0 @@ catch (error) {

@@ -5,2 +5,4 @@ function __assignType(fn, args) {

}
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'];
/*

@@ -16,3 +18,3 @@ * Deepkit Framework

import { eachKey } from './iterators.js';
const cacheEnumLabels = new Map();
const cacheEnumLabels = (Map.Ω = [[() => __ΩObject, 'n!'], ['&F']], new Map());
/**

@@ -45,3 +47,3 @@ * Returns the enum label for a given enum value.

getEnumLabels.__type = ['enumDefinition', 'getEnumLabels', 'P"2!"/"'];
const cacheEnumKeys = new Map();
const cacheEnumKeys = (Map.Ω = [[() => __ΩObject, 'n!'], ['&F']], new Map());
/**

@@ -65,3 +67,3 @@ * Returns all possible enum keys.

export function getEnumKeyLabelMap(enumDefinition) {
const map = new Map();
const map = (Map.Ω = [['"'], ['&']], new Map());
const keys = getEnumValues(enumDefinition);

@@ -68,0 +70,0 @@ const labels = getEnumLabels(enumDefinition);

@@ -33,3 +33,3 @@ function __assignType(fn, args) {

}
return new Promise(__assignType((resolve, reject) => {
return (Promise.Ω = [['$']], new Promise(__assignType((resolve, reject) => {
const ourTake = () => {

@@ -69,3 +69,3 @@ LOCKS[this.id].time = Date.now() / 1000;

}
}, ['resolve', 'reject', '', 'P"2!"2""/#']));
}, ['resolve', 'reject', '', 'P"2!"2""/#'])));
}

@@ -109,3 +109,3 @@ isLocked() {

}
ProcessLock.__type = ['ttlTimeout', 'id', 'constructor', 'ttl', () => 0, 'timeout', () => 0, 'acquire', 'isLocked', () => 0, 'tryLock', 'unlock', '"3!<P&2":"0#P\'2$>%\'2&>\'"0(P"0)P\'2$>*"0+P"0,5'];
ProcessLock.__type = ['ttlTimeout', 'id', 'constructor', 'ttl', () => 0, 'timeout', () => 0, 'acquire', 'isLocked', () => 0, 'tryLock', 'unlock', '"3!<P&2":9"0#P\'2$>%\'2&>\'"0(P"0)P\'2$>*"0+P"0,5'];
export class ProcessLocker {

@@ -112,0 +112,0 @@ /**

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

@@ -11,2 +11,3 @@ "type": "commonjs",

".": {
"types": "./dist/cjs/index.d.ts",
"require": "./dist/cjs/index.js",

@@ -44,3 +45,3 @@ "default": "./dist/esm/index.js"

},
"gitHead": "a6f881d3a00608c64fc458eadc8ca3a0d7bae0ea"
"gitHead": "e33e602e0a9c12ff8d8507315e3b57b1db9e0f44"
}

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