@homer0/package-info
Advanced tools
Comparing version 3.0.5 to 3.0.6
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
29324
9
275
+ Added@homer0/deferred@3.0.6(transitive)
+ Added@homer0/jimple@3.0.6(transitive)
+ Added@homer0/path-utils@3.0.6(transitive)
- Removed@homer0/deferred@3.0.5(transitive)
- Removed@homer0/jimple@3.0.5(transitive)
- Removed@homer0/path-utils@3.0.5(transitive)
Updated@homer0/deferred@3.0.6
Updated@homer0/jimple@3.0.6
Updated@homer0/path-utils@3.0.6