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

datamodel

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datamodel - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

3

lib/datamodel.js

@@ -5,2 +5,3 @@ 'use strict';

, assert = require('assert')
, once = require('once')
;

@@ -116,3 +117,3 @@ function parallel(tasks, fn) {

ouo[k] = function (callback) {
ino[k].call(results, input, callback);
ino[k].call(results, input, once(callback));
}

@@ -119,0 +120,0 @@ });

{
"name": "datamodel",
"version": "1.1.0",
"version": "1.1.1",
"author": "Nicolas Thouvenin <nthouvenin@gmail.com>",

@@ -23,3 +23,5 @@ "contributors": [],

},
"dependencies": {},
"dependencies": {
"once": "^1.3.1"
},
"devDependencies": {

@@ -26,0 +28,0 @@ "mocha": ">=1.8.1",

@@ -464,4 +464,25 @@ /* global describe, it */

it('17 - callback called once', function (done) {
datamodel()
.declare('a', function(input, fill) {
fill('(a)');
fill('(x)');
})
.declare('b', function(input, fill) {
fill('(b)');
fill('(y)');
})
.declare('c', function(input, fill) {
fill('(c)');
fill('(z)');
})
.apply(function(err, result) {
assert.equal(result.a, '(a)');
assert.equal(result.b, '(b)');
assert.equal(result.c, '(c)');
done();
});
});
/* */
});
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