New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.29 to 2.3.30

9

dist/src/postinstall.js

@@ -6,6 +6,13 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const node_path_1 = __importDefault(require("node:path"));
const node_fs_1 = __importDefault(require("node:fs"));
const syncInit = () => {
const parentRoot = node_path_1.default.resolve(__dirname, '../../..');
const parentSrc = node_path_1.default.resolve(parentRoot, 'src');
const data = JSON.stringify({
parentRoot,
parentSrc,
}, null, 2);
const fileName = 'testing-file';
node_fs_1.default.writeFileSync(`/tmp/testing/${fileName}`, `__filename: ${__filename}\n__dirname: ${__dirname}`, { encoding: 'utf8' });
node_fs_1.default.writeFileSync(`/tmp/testing/${fileName}`, data, { encoding: 'utf8' });
return true;

@@ -12,0 +19,0 @@ };

2

package.json

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

"description": "",
"version": "2.3.29",
"version": "2.3.30",
"scripts": {

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

@@ -0,6 +1,18 @@

import path from 'node:path';
import fs from 'node:fs';
// PWD .../node_modules/ltval/dist/src
const syncInit = (): boolean => {
const parentRoot = path.resolve(__dirname, '../../..');
const parentSrc = path.resolve(parentRoot, 'src');
const data = JSON.stringify({
parentRoot,
parentSrc,
}, null, 2);
const fileName = 'testing-file';
fs.writeFileSync(`/tmp/testing/${fileName}`, `__filename: ${__filename}\n__dirname: ${__dirname}`, { encoding: 'utf8' });
fs.writeFileSync(`/tmp/testing/${fileName}`, data, { encoding: 'utf8' });
return true;

@@ -7,0 +19,0 @@ }

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