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

@locker/instrumentation

Package Overview
Dependencies
Maintainers
8
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/instrumentation - npm Package Compare versions

Comparing version 0.18.15 to 0.18.16

dist/index.cjs.d.ts

34

dist/index.cjs.js

@@ -9,9 +9,6 @@ /*!

});
var shared$LWS = require('@locker/shared');
var shared$LWS = require('@locker/shared');
/* eslint-disable class-methods-use-this, max-classes-per-file */
let ticketSequence$LWS = 0;
function getActivityId$LWS() {

@@ -22,4 +19,2 @@ ticketSequence$LWS += 1;

/* eslint no-underscore-dangle: ['error',{allowAfterThis:true}] */
class LockerActivity$LWS {

@@ -40,12 +35,8 @@ constructor(activityName$LWS, startCallback$LWS, stopCallback$LWS, captureTimestamps$LWS = false) {

*/
start(data$LWS) {
if (!this._started) {
this._started = true;
if (this._captureTimestamps) {
this._activityStart = shared$LWS.getTimestamp();
}
if (typeof this._startCallback === 'function') {

@@ -59,12 +50,8 @@ this._startCallback(this, data$LWS);

*/
stop(data$LWS) {
if (!this._stopped) {
this._stopped = true;
if (this._captureTimestamps) {
this._activityStop = shared$LWS.getTimestamp();
}
if (typeof this._stopCallback === 'function') {

@@ -78,4 +65,2 @@ this._stopCallback(this, data$LWS);

*/
error(data$LWS) {

@@ -90,9 +75,6 @@ // @TODO:

}
get duration() {
return this._activityStop > this._activityStart ? this._activityStop - this._activityStart : 0;
}
}
class LockerInstrumentation$LWS {

@@ -102,14 +84,10 @@ // eslint-disable-next-line @typescript-eslint/no-unused-vars

return new LockerActivity$LWS(activityName$LWS, undefined, undefined);
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
log(_data$LWS) {} // eslint-disable-next-line @typescript-eslint/no-unused-vars
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
log(_data$LWS) {}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
error(_data$LWS) {}
}
exports.LockerActivity = LockerActivity$LWS;
exports.LockerInstrumentation = LockerInstrumentation$LWS;
/*! version: 0.18.15 */
/*! version: 0.18.16 */

@@ -5,6 +5,5 @@ /*!

import { getTimestamp as getTimestamp$LWS, DateNow as DateNow$LWS } from '@locker/shared';
/* eslint-disable class-methods-use-this, max-classes-per-file */
let ticketSequence$LWS = 0;
function getActivityId$LWS() {

@@ -15,4 +14,2 @@ ticketSequence$LWS += 1;

/* eslint no-underscore-dangle: ['error',{allowAfterThis:true}] */
class LockerActivity$LWS {

@@ -33,12 +30,8 @@ constructor(activityName$LWS, startCallback$LWS, stopCallback$LWS, captureTimestamps$LWS = false) {

*/
start(data$LWS) {
if (!this._started) {
this._started = true;
if (this._captureTimestamps) {
this._activityStart = getTimestamp$LWS();
}
if (typeof this._startCallback === 'function') {

@@ -52,12 +45,8 @@ this._startCallback(this, data$LWS);

*/
stop(data$LWS) {
if (!this._stopped) {
this._stopped = true;
if (this._captureTimestamps) {
this._activityStop = getTimestamp$LWS();
}
if (typeof this._stopCallback === 'function') {

@@ -71,4 +60,2 @@ this._stopCallback(this, data$LWS);

*/
error(data$LWS) {

@@ -83,9 +70,6 @@ // @TODO:

}
get duration() {
return this._activityStop > this._activityStart ? this._activityStop - this._activityStart : 0;
}
}
class LockerInstrumentation$LWS {

@@ -95,13 +79,9 @@ // eslint-disable-next-line @typescript-eslint/no-unused-vars

return new LockerActivity$LWS(activityName$LWS, undefined, undefined);
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
log(_data$LWS) {} // eslint-disable-next-line @typescript-eslint/no-unused-vars
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
log(_data$LWS) {}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
error(_data$LWS) {}
}
export { LockerActivity$LWS as LockerActivity, LockerInstrumentation$LWS as LockerInstrumentation };
/*! version: 0.18.15 */
/*! version: 0.18.16 */
{
"name": "@locker/instrumentation",
"version": "0.18.15",
"version": "0.18.16",
"license": "SEE LICENSE IN LICENSE.txt",

@@ -10,3 +10,2 @@ "author": "Salesforce UI Security Team",

"sideEffects": false,
"typings": "types/index.d.ts",
"publishConfig": {

@@ -16,5 +15,5 @@ "access": "public"

"scripts": {
"build": "tsc --project tsconfig.types.json && rollup --config .rolluprc.cjs",
"build": "rollup --config .rolluprc.cjs",
"build:dev": "cross-env NODE_ENV=development yarn build",
"clean": "locker-trash dist/ types/",
"clean": "locker-trash dist/",
"test:base": "yarn build && jest",

@@ -24,12 +23,11 @@ "test:dev": "cross-env NODE_ENV=development yarn test:base"

"dependencies": {
"@locker/shared": "0.18.15"
"@locker/shared": "0.18.16"
},
"devDependencies": {
"@locker/near-membrane-base": "0.12.11"
"@locker/near-membrane-base": "0.12.12"
},
"files": [
"dist/",
"types/",
"LICENSE.txt"
]
}

@@ -133,3 +133,3 @@ # @locker/instrumentation

import { LockerActivity , LockerInstrumentation } from '@locker/instrumentation';
import type { DataType } from '@locker/instrumentation/types';
import type { DataType } from '@locker/instrumentation';

@@ -136,0 +136,0 @@ const activityStartCallback = (activity, data) => {

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