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

cartable

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cartable - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

cartable.json

16

index.js
const _ = require('lodash/fp');
const Promise = require('bluebird');
const writeJSONAsync = Promise.promisify(require('fs-extra').writeJSON);
const path = require('path');
const logger = require('./libs/logger');
const root = process.env.PWD;
const cartablePath = path.resolve(root, 'cartable.json');
let cartable;
let cartable = [];
try {
cartable = JSON.parse(require(cartablePath));
} catch (e) {
cartable = [];
}

@@ -21,2 +11,3 @@ const get = (pname) => {

)(cartable);
if (found) {

@@ -29,4 +20,3 @@ logger.info('Module already required');

const p = require(pname);
cartable.push({ name: pname, content: p });
writeJSONAsync(cartablePath, JSON.stringify(cartable)).catch(logger.error);
cartable.push({ name: pname });
return p;

@@ -33,0 +23,0 @@ } catch (e) {

{
"name": "cartable",
"version": "2.0.6",
"version": "2.0.7",
"description": "",

@@ -20,5 +20,3 @@ "main": "index.js",

"dependencies": {
"bluebird": "^3.5.0",
"colors": "^1.1.2",
"fs-extra": "^2.1.2",
"lodash": "^4.17.4"

@@ -25,0 +23,0 @@ },

Sorry, the diff of this file is not supported yet

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