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

@tapjs/processinfo

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tapjs/processinfo - npm Package Compare versions

Comparing version 2.5.4 to 2.5.5

18

dist/cjs/line-lengths.js

@@ -14,12 +14,14 @@ "use strict";

filename = (0, url_1.fileURLToPath)(filename);
if (cache.has(filename))
// no need if it's not sourcemapped
// don't cache an empty array, though, because ts-node files will show
// up first as source, and then as their built content.
const last = content.trimEnd().split('\n').pop();
if (cache.has(filename) || !last?.startsWith(sourceMapComment))
return;
// no need if it's not sourcemapped
const ll = !content.includes(sourceMapComment)
? []
: content
.replace(/[\n\u2028\u2029]$/, '')
.split(/\n|\u2028|\u2029/)
.map(l => l.length);
const ll = content
.replace(/[\n\u2028\u2029]$/, '')
.split(/\n|\u2028|\u2029/)
.map(l => l.length);
cache.set(filename, ll);
cache.set(filename, ll);
};

@@ -26,0 +28,0 @@ exports.saveLineLengths = saveLineLengths;

@@ -11,12 +11,14 @@ // TODO: Refactor once https://github.com/nodejs/node/issues/48460 fixed

filename = fileURLToPath(filename);
if (cache.has(filename))
// no need if it's not sourcemapped
// don't cache an empty array, though, because ts-node files will show
// up first as source, and then as their built content.
const last = content.trimEnd().split('\n').pop();
if (cache.has(filename) || !last?.startsWith(sourceMapComment))
return;
// no need if it's not sourcemapped
const ll = !content.includes(sourceMapComment)
? []
: content
.replace(/[\n\u2028\u2029]$/, '')
.split(/\n|\u2028|\u2029/)
.map(l => l.length);
const ll = content
.replace(/[\n\u2028\u2029]$/, '')
.split(/\n|\u2028|\u2029/)
.map(l => l.length);
cache.set(filename, ll);
cache.set(filename, ll);
};

@@ -23,0 +25,0 @@ export const getLineLengths = (filename) => {

{
"name": "@tapjs/processinfo",
"version": "2.5.4",
"version": "2.5.5",
"main": "./dist/cjs/index.js",

@@ -5,0 +5,0 @@ "types": "./dist/cjs/index.d.ts",

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