Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mark-loader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mark-loader - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

11

index.js
const path = require('path');
const markLoaderGlobal = (markName) => (
`; var __markLoaderGlobal = global || window || {}; `
);
const startMark = (markName) => (
`;global.performance && global.performance.mark && global.performance.mark('${markName}_start');`
`;__markLoaderGlobal.performance && __markLoaderGlobal.performance.mark && __markLoaderGlobal.performance.mark('${markName}_start'); `
);
const endMark = (markName) => (
`;global.performance && global.performance.mark && global.performance.mark('${markName}_end');`
`;__markLoaderGlobal.performance && __markLoaderGlobal.performance.mark && __markLoaderGlobal.performance.mark('${markName}_end'); `
);
const measure = (markName) => (
`;global.performance && global.performance.measure && global.performance.measure('${markName}', '${markName}_start', '${markName}_end');`
`;__markLoaderGlobal.performance && __markLoaderGlobal.performance.measure && __markLoaderGlobal.performance.measure('${markName}', '${markName}_start', '${markName}_end'); `
);

@@ -21,2 +25,3 @@

return [
markLoaderGlobal(),
startMark(markName),

@@ -23,0 +28,0 @@ content,

{
"name": "mark-loader",
"version": "0.1.4",
"version": "0.1.5",
"description": "Inspect module load time with performance.measure",

@@ -5,0 +5,0 @@ "main": "index.js",

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