Socket
Socket
Sign inDemoInstall

@talend/scripts-utils

Package Overview
Dependencies
78
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.1.0

7

__tests__/path.test.js
/* eslint-disable no-console */
import path from 'path';
import utils from '../src';
const utils = require('../src');

@@ -13,4 +12,4 @@ describe('utils.path', () => {

it('should', () => {
expect(utils.path.getPkgRootPath('@talend/scripts-utils')).toMatch(
/ui\/tools\/scripts-utils/,
expect(utils.path.getPkgRootPath('@talend/scripts-config-babel')).toMatch(
/.*\/tools\/scripts-config-babel$/,
);

@@ -17,0 +16,0 @@ });

/* eslint-disable no-console */
import path from 'path';
import utils from '../src';
const path = require('path');
const utils = require('../src');

@@ -5,0 +5,0 @@ describe('utils.pkg', () => {

{
"root": true,
"extends": "@talend"
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:import/recommended"],
"env": {
"es6": true,
"node": true,
"jasmine": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"requireConfigFile": false
}
}
# @talend/scripts-utils
## 2.1.0
### Minor Changes
- 3f9c8a7bb: fix test to use package existing in the package.json
remove link to scripts-core (circular dep)
add missing deps
adapt code for pnpm
## 2.0.2

@@ -4,0 +13,0 @@

{
"name": "@talend/scripts-utils",
"version": "2.0.2",
"version": "2.1.0",
"description": "",
"main": "src/index.js",
"scripts": {
"lint": "talend-scripts lint",
"test": "talend-scripts test"
"lint": "eslint ./",
"test": "jest .test.js"
},

@@ -15,2 +15,7 @@ "dependencies": {

},
"devDependencies": {
"@babel/eslint-parser": "^7.22.15",
"eslint": "^7.32.0",
"jest": "^29.7.0"
},
"repository": {

@@ -17,0 +22,0 @@ "type": "git",

@@ -8,2 +8,3 @@ const fs = require('fs');

const pkglockPath = path.join(cwd, 'package-lock.json');
const pnpmLockPath = path.join(cwd, 'pnpm-lock.yaml');
if (fs.existsSync(yarnlockPath)) {

@@ -13,2 +14,4 @@ return yarnlockPath;

return pkglockPath;
} else if (fs.existsSync(pnpmLockPath)) {
return pnpmLockPath;
}

@@ -15,0 +18,0 @@ const parentPath = path.join(cwd, '..');

@@ -20,5 +20,8 @@ const fs = require('fs');

try {
require(name);
// eslint-disable-next-line import/no-dynamic-require, global-require
require.resolve(name);
return true;
// eslint-disable-next-line no-empty
} catch (e) {}
return false;
}

@@ -25,0 +28,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc