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

pkgscan

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkgscan - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

15

dist/cli.js

@@ -377,2 +377,13 @@ #! /usr/bin/env node

// src/utils/stripBOM.ts
var stripBom = (content) => {
if (typeof content !== "string") {
throw new TypeError(`Expected a string, got ${typeof content}`);
}
if (content.charCodeAt(0) === 65279) {
return content.slice(1);
}
return content;
};
// src/package-manager/modules/pnpm/read.ts

@@ -385,3 +396,3 @@ function readWantedLockfile(pkgPath, opts) {

try {
lockfileRawContent = require("strip-bom").default(import_fs3.default.readFileSync(lockfilePath, "utf8"));
lockfileRawContent = stripBom(import_fs3.default.readFileSync(lockfilePath, "utf8"));
} catch (err) {

@@ -614,3 +625,3 @@ if (err.code !== "ENOENT") {

// package.json
var version = "1.0.22";
var version = "1.0.23";

@@ -617,0 +628,0 @@ // src/cli.ts

@@ -379,2 +379,13 @@ "use strict";

// src/utils/stripBOM.ts
var stripBom = (content) => {
if (typeof content !== "string") {
throw new TypeError(`Expected a string, got ${typeof content}`);
}
if (content.charCodeAt(0) === 65279) {
return content.slice(1);
}
return content;
};
// src/package-manager/modules/pnpm/read.ts

@@ -387,3 +398,3 @@ function readWantedLockfile(pkgPath, opts) {

try {
lockfileRawContent = require("strip-bom").default(import_fs3.default.readFileSync(lockfilePath, "utf8"));
lockfileRawContent = stripBom(import_fs3.default.readFileSync(lockfilePath, "utf8"));
} catch (err) {

@@ -390,0 +401,0 @@ if (err.code !== "ENOENT") {

3

package.json

@@ -5,3 +5,3 @@ {

"description": "Retrieve information on installed packages across npm, pnpm and yarn",
"version": "1.0.23",
"version": "1.0.24",
"main": "./dist/index.js",

@@ -95,3 +95,2 @@ "module": "./dist/index.mjs",

"semver": "^7.5.2",
"strip-bom": "4.0.0",
"yargs": "^17.7.2"

@@ -98,0 +97,0 @@ },

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