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

@homer0/package-info

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@homer0/package-info - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

14

dist/esm/index.js
var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
import * as fsSync from "fs";

@@ -36,6 +33,4 @@ import * as fsPromises from "fs/promises";

async get() {
if (this.contents)
return this.contents;
if (this.defer)
return this.defer.promise;
if (this.contents) return this.contents;
if (this.defer) return this.defer.promise;
this.defer = deferred();

@@ -49,4 +44,3 @@ const packageJson = await fsPromises.readFile(this.filepath, "utf8");

getSync() {
if (this.contents)
return this.contents;
if (this.contents) return this.contents;
const packageJson = fsSync.readFileSync(this.filepath, "utf8");

@@ -53,0 +47,0 @@ return this.updateContents(packageJson);

@@ -30,6 +30,3 @@ "use strict";

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
var src_exports = {};

@@ -71,6 +68,4 @@ __export(src_exports, {

async get() {
if (this.contents)
return this.contents;
if (this.defer)
return this.defer.promise;
if (this.contents) return this.contents;
if (this.defer) return this.defer.promise;
this.defer = (0, import_deferred.deferred)();

@@ -84,4 +79,3 @@ const packageJson = await fsPromises.readFile(this.filepath, "utf8");

getSync() {
if (this.contents)
return this.contents;
if (this.contents) return this.contents;
const packageJson = fsSync.readFileSync(this.filepath, "utf8");

@@ -88,0 +82,0 @@ return this.updateContents(packageJson);

{
"name": "@homer0/package-info",
"description": "Gets the content of the project's package.json",
"version": "3.0.5",
"version": "3.0.6",
"repository": {

@@ -26,14 +26,14 @@ "type": "git",

"dependencies": {
"@homer0/deferred": "3.0.5",
"@homer0/jimple": "3.0.5",
"@homer0/path-utils": "3.0.5"
"@homer0/deferred": "3.0.6",
"@homer0/jimple": "3.0.6",
"@homer0/path-utils": "3.0.6"
},
"devDependencies": {
"@homer0/eslint-plugin": "12.0.5",
"@homer0/tsconfig": "1.0.16",
"@homer0/eslint-plugin": "12.0.6",
"@homer0/tsconfig": "1.0.17",
"jest": "^29.7.0",
"package-json-type": "^1.0.3",
"ts-jest": "^29.1.2",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
"ts-jest": "^29.2.5",
"tsup": "^8.3.0",
"typescript": "^5.6.2"
},

@@ -54,3 +54,3 @@ "engine-strict": true,

},
"gitHead": "89e47f2d17f87e0ce74bbe0f1c34c62a9cc05b74"
"gitHead": "23adf9f57cbd4d3762816982b78b51db26f7bc30"
}

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