New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vital-ai/haley-js-browser

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vital-ai/haley-js-browser - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

2

package.json
{
"name": "@vital-ai/haley-js-browser",
"version": "0.1.11",
"version": "0.1.12",
"description": "haley service for browser",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,4 +6,5 @@ const fs = require('fs');

const WEBROOT_DIR = process.env.npm_package_config_WEBROOT_DIR;
const INSTALL_PATH_TO_PROJECT_FOLDER = process.env.npm_package_config_INSTALL_PATH_TO_PROJECT_FOLDER || '../../../../';
const webrootAbsolute = path.join(__dirname, '../../../', WEBROOT_DIR);
const webrootAbsolute = path.join(__dirname, INSTALL_PATH_TO_PROJECT_FOLDER, WEBROOT_DIR);
if (!fs.existsSync(webrootAbsolute)){

@@ -44,3 +45,3 @@ console.error(RED, `Directory ${webrootAbsolute} does not exist`);

FOLDERS_TO_BE_CREATED.forEach(function(dir) {
const absoluteDir = path.join(__dirname, '../../../', dir);
const absoluteDir = path.join(__dirname, INSTALL_PATH_TO_PROJECT_FOLDER, dir);
if (!fs.existsSync(absoluteDir)){

@@ -57,3 +58,3 @@ fs.mkdirSync(absoluteDir);

FILES_TO_BE_COPIED.forEach(function(file) {
const destinationPath = path.join(__dirname, '../../../', COPY_TO_PATH, file);
const destinationPath = path.join(__dirname, INSTALL_PATH_TO_PROJECT_FOLDER, COPY_TO_PATH, file);
if(fs.existsSync(destinationPath)) {

@@ -73,3 +74,3 @@ fs.unlink(destinationPath, function (err) {

const sourcePath = path.join(__dirname, '../', file);
const destinationPath = path.join(__dirname, '../../../', COPY_TO_PATH, file);
const destinationPath = path.join(__dirname, INSTALL_PATH_TO_PROJECT_FOLDER, COPY_TO_PATH, file);
fs.readFile(sourcePath, 'utf8', function (err,data) {

@@ -95,3 +96,3 @@ if (err) {

const text = `TIME_VITAL_INSTALLED = "${new Date()}"`;
const OUTPUT_DOMAINS_PATH = path.join(__dirname, '../../../', COPY_TO_PATH, 'created-time.js');
const OUTPUT_DOMAINS_PATH = path.join(__dirname, INSTALL_PATH_TO_PROJECT_FOLDER, COPY_TO_PATH, 'created-time.js');
fs.writeFile(OUTPUT_DOMAINS_PATH, text, {flag: 'w+'}, function (err) {

@@ -98,0 +99,0 @@ if(err) {

@@ -6,4 +6,5 @@ const fs = require('fs');

const WEBROOT_DIR = process.env.npm_package_config_WEBROOT_DIR;
const INSTALL_PATH_TO_PROJECT_FOLDER = process.env.npm_package_config_INSTALL_PATH_TO_PROJECT_FOLDER || '../../../../';
const webrootAbsolute = path.join(__dirname, '../../../', WEBROOT_DIR);
const webrootAbsolute = path.join(__dirname, INSTALL_PATH_TO_PROJECT_FOLDER, WEBROOT_DIR);
if (!fs.existsSync(webrootAbsolute)){

@@ -15,3 +16,3 @@ console.error(RED, `Directory ${webrootAbsolute} does not exist`);

const OUTPUT_DOMAINS_PATH = path.join(__dirname, '../../../', WEBROOT_DIR, 'js/domains.js');
const OUTPUT_DOMAINS_PATH = path.join(__dirname, INSTALL_PATH_TO_PROJECT_FOLDER, WEBROOT_DIR, 'js/domains.js');
const DOMAINS_PATH = path.join(process.env.VITAL_HOME, 'domain-json-schema');

@@ -18,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