namirasoft-core
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -36,3 +36,5 @@ "use strict"; | ||
exports.FileOperation = void 0; | ||
const fs = __importStar(require("fs")); | ||
let fs; | ||
if (typeof window === 'undefined') | ||
fs = require('fs'); | ||
const path = __importStar(require("path")); | ||
@@ -39,0 +41,0 @@ class FileOperation { |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PackageService = void 0; | ||
const fs_1 = __importDefault(require("fs")); | ||
let fs; | ||
if (typeof window === 'undefined') | ||
fs = require('fs'); | ||
const FileOperation_1 = require("./FileOperation"); | ||
@@ -12,3 +11,3 @@ class PackageService { | ||
if (path) { | ||
const json = JSON.parse(fs_1.default.readFileSync(path, 'utf8')); | ||
const json = JSON.parse(fs.readFileSync(path, 'utf8')); | ||
if (json) | ||
@@ -15,0 +14,0 @@ return new PackageService(path, json); |
{ | ||
"name": "namirasoft-core", | ||
"description": "Namira Software Corporation Core NPM Package", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"main": "./dist/index.js", | ||
@@ -18,2 +18,2 @@ "types": "./dist/index.d.ts", | ||
} | ||
} | ||
} |
@@ -1,2 +0,4 @@ | ||
import * as fs from 'fs'; | ||
let fs: any; | ||
if (typeof window === 'undefined') | ||
fs = require('fs'); | ||
import * as path from 'path'; | ||
@@ -3,0 +5,0 @@ export class FileOperation |
@@ -1,2 +0,4 @@ | ||
import fs from "fs"; | ||
let fs: any; | ||
if (typeof window === 'undefined') | ||
fs = require('fs'); | ||
import { FileOperation } from "./FileOperation"; | ||
@@ -3,0 +5,0 @@ |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
226818
3350