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

agreed-core

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agreed-core - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

18

lib/template/format.js

@@ -7,2 +7,7 @@ 'use strict';

var result = template;
if (Array.isArray(template)) {
return formatArray(template, args);
}
if (typeof template === 'object') {

@@ -51,1 +56,14 @@ return formatObject(template, args);

function formatArray(array, args) {
var result = [];
if (!array) {
return array;
}
array.forEach((item) => {
result.push(format(item, args));
});
return result;
}

2

package.json
{
"name": "agreed-core",
"version": "0.3.3",
"version": "0.3.4",
"description": "agreed is a mock server and test client, agreed will be helper for Consumer Driven Contract",

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

@@ -58,3 +58,3 @@ 'use strict';

});
assert.deepEqual(result, {a: true, b: [1,2,3, null], c: { aaaa: 'bbb' }});
assert.deepStrictEqual(result, {a: true, b: [1,2,3, null], c: { aaaa: 'bbb' }});
});

@@ -75,3 +75,3 @@

});
assert.deepEqual(result, {
assert.deepStrictEqual(result, {
a: {

@@ -100,3 +100,5 @@ abc: '{:abc}'

});
assert.deepEqual(result, {
console.log(result);
assert.deepStrictEqual(result, {
a: {

@@ -125,3 +127,3 @@ abc: '{:abc}'

console.log(result);
assert.deepEqual(result, {
assert.deepStrictEqual(result, {
a: {

@@ -133,1 +135,2 @@ abc: 1

});
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