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

@f5devcentral/atg-shared-utilities

Package Overview
Dependencies
Maintainers
16
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@f5devcentral/atg-shared-utilities - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

CHANGELOG.md

@@ -15,2 +15,6 @@ # Changelog

## [0.2.2] - 2021-10-18
### Changed
- Update packages
## [0.2.1] - 2021-04-12

@@ -17,0 +21,0 @@ ### Added

7

index.js

@@ -17,8 +17,7 @@ /**

'use strict';
const arrayUtils = require('./src/arrayUtils.js');
const promiseUtils = require('./src/promiseUtils.js');
const secureVault = require('./src/secureVault.js');
const arrayUtils = require('./src/arrayUtils');
const promiseUtils = require('./src/promiseUtils');
const secureVault = require('./src/secureVault');

@@ -25,0 +24,0 @@ module.exports = {

{
"name": "@f5devcentral/atg-shared-utilities",
"version": "0.2.1",
"version": "0.2.2",
"scripts": {

@@ -10,9 +10,11 @@ "lint": "eslint .",

"devDependencies": {
"@f5devcentral/eslint-config-f5-atg": "latest",
"nyc": "^15.1.0",
"sinon": "7.5.0",
"chai": "^4.2.0",
"@f5devcentral/eslint-config-f5-atg": "^0.1.4",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.24.2",
"mocha": "^9.1.3",
"nock": "10.0.0",
"mocha": "^7.2.0"
"nyc": "^15.1.0",
"sinon": "7.5.0"
},

@@ -19,0 +21,0 @@ "eslintConfig": {

@@ -17,3 +17,2 @@ /**

'use strict';

@@ -20,0 +19,0 @@

@@ -17,3 +17,2 @@ /**

'use strict';

@@ -44,3 +43,3 @@

return functions.reduce(
(promise, f) => promise.then(f).then(r => results.push(r)),
(promise, f) => promise.then(f).then((r) => results.push(r)),
Promise.resolve()

@@ -57,3 +56,3 @@ ).then(() => results);

const parallel = function (functions) {
return Promise.all(functions.map(f => f()));
return Promise.all(functions.map((f) => f()));
};

@@ -71,10 +70,10 @@

// treat it as a rejection so Promise.all immediately bails out.
return Promise.all(promises.map(p => p.then(
val => Promise.reject(val),
err => Promise.resolve(err)
return Promise.all(promises.map((p) => p.then(
(val) => Promise.reject(val),
(err) => Promise.resolve(err)
))).then(
// If '.all' resolved, we've just got an array of errors.
errors => Promise.reject(errors),
(errors) => Promise.reject(errors),
// If '.all' rejected, we've got the result we wanted.
val => Promise.resolve(val)
(val) => Promise.resolve(val)
);

@@ -97,3 +96,3 @@ }

return fn.apply(this, args)
.catch(err => this.delay(options.delay)
.catch((err) => this.delay(options.delay)
.then(() => {

@@ -100,0 +99,0 @@ if (options.retries === 0) {

@@ -17,3 +17,2 @@ /**

'use strict';

@@ -34,3 +33,3 @@

const splitData = data.match(/.{1,500}/g);
return this._encryptHelper(splitData, [], 0).then(r => r.join(','));
return this._encryptHelper(splitData, [], 0).then((r) => r.join(','));
}

@@ -37,0 +36,0 @@

@@ -17,3 +17,2 @@ /**

'use strict';

@@ -23,3 +22,3 @@

const arrayUtils = require('../../src/arrayUtils.js');
const arrayUtils = require('../../src/arrayUtils');

@@ -26,0 +25,0 @@ describe('arrayUtils', () => {

@@ -17,6 +17,4 @@ /**

'use strict';
const sinon = require('sinon');

@@ -29,3 +27,3 @@ const chai = require('chai');

const promiseUtil = require('../../src/promiseUtils.js');
const promiseUtil = require('../../src/promiseUtils');

@@ -32,0 +30,0 @@ describe('promiseUtil', () => {

@@ -24,3 +24,3 @@ /**

const request = require('../../src/request.js');
const request = require('../../src/request');

@@ -27,0 +27,0 @@ describe('Request', () => {

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