New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aurelia/debug

Package Overview
Dependencies
Maintainers
1
Versions
571
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurelia/debug - npm Package Compare versions

Comparing version 0.8.0-dev.202009281652 to 0.8.0-dev.202010011758

141

dist/esnext/tracer.js

@@ -10,41 +10,44 @@ import { PLATFORM, Reporter, Tracer } from '@aurelia/kernel';

};
class TraceInfo {
constructor(objName, methodName, params) {
this.objName = objName;
this.methodName = methodName;
this.params = params;
this.objName = objName;
this.methodName = methodName;
this.depth = TraceInfo.stack.length;
this.params = params;
this.next = marker;
this.prev = TraceInfo.tail;
TraceInfo.tail.next = this;
TraceInfo.tail = this;
TraceInfo.stack.push(this);
}
static reset() {
let current = TraceInfo.head;
let next = null;
while (current != null) {
next = current.next;
current.next = null;
current.prev = null;
current.params = null;
current = next;
let TraceInfo = /** @class */ (() => {
class TraceInfo {
constructor(objName, methodName, params) {
this.objName = objName;
this.methodName = methodName;
this.params = params;
this.objName = objName;
this.methodName = methodName;
this.depth = TraceInfo.stack.length;
this.params = params;
this.next = marker;
this.prev = TraceInfo.tail;
TraceInfo.tail.next = this;
TraceInfo.tail = this;
TraceInfo.stack.push(this);
}
TraceInfo.head = marker;
TraceInfo.tail = marker;
TraceInfo.stack = [];
static reset() {
let current = TraceInfo.head;
let next = null;
while (current != null) {
next = current.next;
current.next = null;
current.prev = null;
current.params = null;
current = next;
}
TraceInfo.head = marker;
TraceInfo.tail = marker;
TraceInfo.stack = [];
}
static enter(objName, methodName, params) {
return new TraceInfo(objName, methodName, params);
}
static leave() {
return TraceInfo.stack.pop();
}
}
static enter(objName, methodName, params) {
return new TraceInfo(objName, methodName, params);
}
static leave() {
return TraceInfo.stack.pop();
}
}
TraceInfo.head = marker;
TraceInfo.tail = marker;
TraceInfo.stack = [];
TraceInfo.head = marker;
TraceInfo.tail = marker;
TraceInfo.stack = [];
return TraceInfo;
})();
export const DebugTracer = {

@@ -128,3 +131,3 @@ ...Tracer,

observation: true,
beforeAttach: true,
attaching: true,
mounting: true,

@@ -370,16 +373,7 @@ di: true,

},
hold(info) {
setLocation(info) {
return `Node{'${(info.params[0]).textContent}'}`;
},
release(info) {
return flagsText(info);
}
};
const MountingArgsProcessor = {
$mount(info) {
return flagsText(info);
},
$unmount(info) {
return flagsText(info);
},
project(info) {

@@ -470,3 +464,3 @@ return ctorName(info);

}
if (options.beforeAttach) {
if (options.attaching) {
Object.assign(Processors, AttachingArgsProcessor);

@@ -504,54 +498,21 @@ }

const flagNames = [];
if (flags & 2097152 /* mustEvaluate */) {
if (flags & 128 /* mustEvaluate */) {
flagNames.push('mustEvaluate');
}
if (flags & 16777216 /* isCollectionMutation */) {
flagNames.push('isCollectionMutation');
}
if (flags & 16 /* updateTargetInstance */) {
if (flags & 8 /* updateTargetInstance */) {
flagNames.push('updateTargetInstance');
}
if (flags & 32 /* updateSourceExpression */) {
if (flags & 16 /* updateSourceExpression */) {
flagNames.push('updateSourceExpression');
}
if (flags & 64 /* fromAsyncFlush */) {
flagNames.push('fromAsyncFlush');
}
if (flags & 128 /* fromSyncFlush */) {
flagNames.push('fromSyncFlush');
}
if (flags & 256 /* fromTick */) {
flagNames.push('fromTick');
}
if (flags & 1024 /* fromStartTask */) {
flagNames.push('fromStartTask');
}
if (flags & 2048 /* fromStopTask */) {
flagNames.push('fromStopTask');
}
if (flags & 4096 /* fromBind */) {
if (flags & 32 /* fromBind */) {
flagNames.push('fromBind');
}
if (flags & 8192 /* fromUnbind */) {
if (flags & 64 /* fromUnbind */) {
flagNames.push('fromUnbind');
}
if (flags & 16384 /* fromAttach */) {
flagNames.push('fromAttach');
}
if (flags & 32768 /* fromDetach */) {
flagNames.push('fromDetach');
}
if (flags & 65536 /* fromCache */) {
flagNames.push('fromCache');
}
if (flags & 131072 /* fromDOMEvent */) {
flagNames.push('fromDOMEvent');
}
if (flags & 262144 /* fromLifecycleTask */) {
flagNames.push('fromLifecycleTask');
}
if (flags & 4194304 /* isTraversingParentScope */) {
if (flags & 256 /* isTraversingParentScope */) {
flagNames.push('isTraversingParentScope');
}
if (flags & 67108864 /* allowParentScopeTraversal */) {
if (flags & 1024 /* allowParentScopeTraversal */) {
flagNames.push('allowParentScopeTraversal');

@@ -565,3 +526,3 @@ }

}
if (flags & 1073741824 /* secondaryExpression */) {
if (flags & 16384 /* secondaryExpression */) {
flagNames.push('secondaryExpression');

@@ -568,0 +529,0 @@ }

@@ -12,2 +12,3 @@ (function (factory) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.Unparser = exports.adoptDebugMethods = exports.enableImprovedExpressionDebugging = void 0;
const AST = require("@aurelia/runtime");

@@ -14,0 +15,0 @@ const astTypeMap = [

@@ -12,2 +12,3 @@ (function (factory) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.TraceConfiguration = exports.DebugConfiguration = void 0;
const kernel_1 = require("@aurelia/kernel");

@@ -14,0 +15,0 @@ const unparser_1 = require("./binding/unparser");

@@ -13,10 +13,10 @@ (function (factory) {

var configuration_1 = require("./configuration");
exports.DebugConfiguration = configuration_1.DebugConfiguration;
exports.TraceConfiguration = configuration_1.TraceConfiguration;
Object.defineProperty(exports, "DebugConfiguration", { enumerable: true, get: function () { return configuration_1.DebugConfiguration; } });
Object.defineProperty(exports, "TraceConfiguration", { enumerable: true, get: function () { return configuration_1.TraceConfiguration; } });
var tracer_1 = require("./tracer");
exports.DebugTracer = tracer_1.DebugTracer;
exports.stringifyLifecycleFlags = tracer_1.stringifyLifecycleFlags;
Object.defineProperty(exports, "DebugTracer", { enumerable: true, get: function () { return tracer_1.DebugTracer; } });
Object.defineProperty(exports, "stringifyLifecycleFlags", { enumerable: true, get: function () { return tracer_1.stringifyLifecycleFlags; } });
var unparser_1 = require("./binding/unparser");
exports.Unparser = unparser_1.Unparser;
Object.defineProperty(exports, "Unparser", { enumerable: true, get: function () { return unparser_1.Unparser; } });
});
//# sourceMappingURL=index.js.map

@@ -12,2 +12,3 @@ (function (factory) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.Reporter = void 0;
const kernel_1 = require("@aurelia/kernel");

@@ -14,0 +15,0 @@ function applyFormat(message, ...params) {

@@ -12,2 +12,3 @@ (function (factory) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.stringifyLifecycleFlags = exports.DebugTracer = void 0;
const kernel_1 = require("@aurelia/kernel");

@@ -22,41 +23,44 @@ const marker = {

};
class TraceInfo {
constructor(objName, methodName, params) {
this.objName = objName;
this.methodName = methodName;
this.params = params;
this.objName = objName;
this.methodName = methodName;
this.depth = TraceInfo.stack.length;
this.params = params;
this.next = marker;
this.prev = TraceInfo.tail;
TraceInfo.tail.next = this;
TraceInfo.tail = this;
TraceInfo.stack.push(this);
}
static reset() {
let current = TraceInfo.head;
let next = null;
while (current != null) {
next = current.next;
current.next = null;
current.prev = null;
current.params = null;
current = next;
let TraceInfo = /** @class */ (() => {
class TraceInfo {
constructor(objName, methodName, params) {
this.objName = objName;
this.methodName = methodName;
this.params = params;
this.objName = objName;
this.methodName = methodName;
this.depth = TraceInfo.stack.length;
this.params = params;
this.next = marker;
this.prev = TraceInfo.tail;
TraceInfo.tail.next = this;
TraceInfo.tail = this;
TraceInfo.stack.push(this);
}
TraceInfo.head = marker;
TraceInfo.tail = marker;
TraceInfo.stack = [];
static reset() {
let current = TraceInfo.head;
let next = null;
while (current != null) {
next = current.next;
current.next = null;
current.prev = null;
current.params = null;
current = next;
}
TraceInfo.head = marker;
TraceInfo.tail = marker;
TraceInfo.stack = [];
}
static enter(objName, methodName, params) {
return new TraceInfo(objName, methodName, params);
}
static leave() {
return TraceInfo.stack.pop();
}
}
static enter(objName, methodName, params) {
return new TraceInfo(objName, methodName, params);
}
static leave() {
return TraceInfo.stack.pop();
}
}
TraceInfo.head = marker;
TraceInfo.tail = marker;
TraceInfo.stack = [];
TraceInfo.head = marker;
TraceInfo.tail = marker;
TraceInfo.stack = [];
return TraceInfo;
})();
exports.DebugTracer = {

@@ -140,3 +144,3 @@ ...kernel_1.Tracer,

observation: true,
beforeAttach: true,
attaching: true,
mounting: true,

@@ -382,16 +386,7 @@ di: true,

},
hold(info) {
setLocation(info) {
return `Node{'${(info.params[0]).textContent}'}`;
},
release(info) {
return flagsText(info);
}
};
const MountingArgsProcessor = {
$mount(info) {
return flagsText(info);
},
$unmount(info) {
return flagsText(info);
},
project(info) {

@@ -482,3 +477,3 @@ return ctorName(info);

}
if (options.beforeAttach) {
if (options.attaching) {
Object.assign(Processors, AttachingArgsProcessor);

@@ -516,54 +511,21 @@ }

const flagNames = [];
if (flags & 2097152 /* mustEvaluate */) {
if (flags & 128 /* mustEvaluate */) {
flagNames.push('mustEvaluate');
}
if (flags & 16777216 /* isCollectionMutation */) {
flagNames.push('isCollectionMutation');
}
if (flags & 16 /* updateTargetInstance */) {
if (flags & 8 /* updateTargetInstance */) {
flagNames.push('updateTargetInstance');
}
if (flags & 32 /* updateSourceExpression */) {
if (flags & 16 /* updateSourceExpression */) {
flagNames.push('updateSourceExpression');
}
if (flags & 64 /* fromAsyncFlush */) {
flagNames.push('fromAsyncFlush');
}
if (flags & 128 /* fromSyncFlush */) {
flagNames.push('fromSyncFlush');
}
if (flags & 256 /* fromTick */) {
flagNames.push('fromTick');
}
if (flags & 1024 /* fromStartTask */) {
flagNames.push('fromStartTask');
}
if (flags & 2048 /* fromStopTask */) {
flagNames.push('fromStopTask');
}
if (flags & 4096 /* fromBind */) {
if (flags & 32 /* fromBind */) {
flagNames.push('fromBind');
}
if (flags & 8192 /* fromUnbind */) {
if (flags & 64 /* fromUnbind */) {
flagNames.push('fromUnbind');
}
if (flags & 16384 /* fromAttach */) {
flagNames.push('fromAttach');
}
if (flags & 32768 /* fromDetach */) {
flagNames.push('fromDetach');
}
if (flags & 65536 /* fromCache */) {
flagNames.push('fromCache');
}
if (flags & 131072 /* fromDOMEvent */) {
flagNames.push('fromDOMEvent');
}
if (flags & 262144 /* fromLifecycleTask */) {
flagNames.push('fromLifecycleTask');
}
if (flags & 4194304 /* isTraversingParentScope */) {
if (flags & 256 /* isTraversingParentScope */) {
flagNames.push('isTraversingParentScope');
}
if (flags & 67108864 /* allowParentScopeTraversal */) {
if (flags & 1024 /* allowParentScopeTraversal */) {
flagNames.push('allowParentScopeTraversal');

@@ -577,3 +539,3 @@ }

}
if (flags & 1073741824 /* secondaryExpression */) {
if (flags & 16384 /* secondaryExpression */) {
flagNames.push('secondaryExpression');

@@ -580,0 +542,0 @@ }

{
"name": "@aurelia/debug",
"version": "0.8.0-dev.202009281652",
"version": "0.8.0-dev.202010011758",
"main": "dist/umd/index.js",

@@ -37,11 +37,11 @@ "module": "dist/esnext/index.js",

"dependencies": {
"@aurelia/kernel": "^0.8.0-dev.202009281652",
"@aurelia/metadata": "^0.8.0-dev.202009281652",
"@aurelia/runtime": "^0.8.0-dev.202009281652",
"@aurelia/scheduler": "^0.8.0-dev.202009281652"
"@aurelia/kernel": "^0.8.0-dev.202010011758",
"@aurelia/metadata": "^0.8.0-dev.202010011758",
"@aurelia/runtime": "^0.8.0-dev.202010011758",
"@aurelia/scheduler": "^0.8.0-dev.202010011758"
},
"devDependencies": {
"typescript": "^3.8.3"
"typescript": "^3.9.3"
},
"gitHead": "39cbc673acf68031cbaa864577f6d7bfdcea412c"
"gitHead": "ce811a75155120a7f6b9cc505677a9e9cdc8dab1"
}

@@ -140,3 +140,3 @@ import { ILiveLoggingOptions, ITraceInfo, ITraceWriter, PLATFORM, Reporter, Tracer } from '@aurelia/kernel';

observation: true,
beforeAttach: true,
attaching: true,
mounting: true,

@@ -402,17 +402,8 @@ di: true,

},
hold(info: ITraceInfo): string {
setLocation(info: ITraceInfo): string {
return `Node{'${((info.params as readonly { textContent: string }[])[0]).textContent}'}`;
},
release(info: ITraceInfo): string {
return flagsText(info);
}
};
const MountingArgsProcessor = {
$mount(info: ITraceInfo): string {
return flagsText(info);
},
$unmount(info: ITraceInfo): string {
return flagsText(info);
},
project(info: ITraceInfo): string {

@@ -507,3 +498,3 @@ return ctorName(info);

}
if (options.beforeAttach) {
if (options.attaching) {
Object.assign(Processors, AttachingArgsProcessor);

@@ -543,17 +534,6 @@ }

if (flags & LifecycleFlags.mustEvaluate) { flagNames.push('mustEvaluate'); }
if (flags & LifecycleFlags.isCollectionMutation) { flagNames.push('isCollectionMutation'); }
if (flags & LifecycleFlags.updateTargetInstance) { flagNames.push('updateTargetInstance'); }
if (flags & LifecycleFlags.updateSourceExpression) { flagNames.push('updateSourceExpression'); }
if (flags & LifecycleFlags.fromAsyncFlush) { flagNames.push('fromAsyncFlush'); }
if (flags & LifecycleFlags.fromSyncFlush) { flagNames.push('fromSyncFlush'); }
if (flags & LifecycleFlags.fromTick) { flagNames.push('fromTick'); }
if (flags & LifecycleFlags.fromStartTask) { flagNames.push('fromStartTask'); }
if (flags & LifecycleFlags.fromStopTask) { flagNames.push('fromStopTask'); }
if (flags & LifecycleFlags.fromBind) { flagNames.push('fromBind'); }
if (flags & LifecycleFlags.fromUnbind) { flagNames.push('fromUnbind'); }
if (flags & LifecycleFlags.fromAttach) { flagNames.push('fromAttach'); }
if (flags & LifecycleFlags.fromDetach) { flagNames.push('fromDetach'); }
if (flags & LifecycleFlags.fromCache) { flagNames.push('fromCache'); }
if (flags & LifecycleFlags.fromDOMEvent) { flagNames.push('fromDOMEvent'); }
if (flags & LifecycleFlags.fromLifecycleTask) { flagNames.push('fromLifecycleTask'); }
if (flags & LifecycleFlags.isTraversingParentScope) { flagNames.push('isTraversingParentScope'); }

@@ -560,0 +540,0 @@ if (flags & LifecycleFlags.allowParentScopeTraversal) { flagNames.push('allowParentScopeTraversal'); }

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