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

scheming

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scheming - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

dest/node/utilities.js

1

bower.json

@@ -6,4 +6,3 @@ {

"dependencies": {
"lodash": "2.x || 3.x"
}
}

@@ -5,3 +5,3 @@ (function() {

_ = require('lodash');
_ = require('./utilities');

@@ -8,0 +8,0 @@ ChangeManager = (function() {

@@ -6,3 +6,3 @@ (function() {

_ = require('lodash');
_ = require('./utilities');

@@ -67,3 +67,3 @@ Types = require('./Types');

});
_.each(_this.ARRAY_MUTATORS, function(method) {
(_this.ARRAY_MUTATORS || []).forEach(function(method) {
if ((prevVal != null) && prevVal[method]) {

@@ -122,3 +122,3 @@ delete prevVal[method];

cb = properties;
properties = _.keys(normalizedSchema);
properties = Object.keys(normalizedSchema);
}

@@ -188,3 +188,3 @@ if (opts == null) {

unwatchers[propName] = [];
return _.each(val, function(schema, i) {
return (val || []).forEach(function(schema, i) {
return unwatchers[propName].push(schema != null ? schema.watch(function(newVal, oldVal) {

@@ -228,3 +228,3 @@ var newArray, oldArray;

}
triggeringProperties = _.keys(queuedChanges);
triggeringProperties = Object.keys(queuedChanges);
getPrevVal = function(propName) {

@@ -259,4 +259,4 @@ if (_.has(queuedChanges, propName)) {

results.push(watcher.cb(newVals, oldVals));
} catch (_error) {
e = _error;
} catch (error) {
e = error;
results.push(console.error(e.stack || e));

@@ -263,0 +263,0 @@ }

@@ -6,3 +6,3 @@ (function() {

_ = require('lodash');
_ = require('./utilities');

@@ -97,4 +97,4 @@ Types = require('./Types');

renamed = new Function('fn', fnStr)(fn);
} catch (_error) {
err = _error;
} catch (error1) {
err = error1;
throw new Error(name + " is not a valid function name.");

@@ -202,4 +202,4 @@ }

err = validator.call(instance, val);
} catch (_error) {
e = _error;
} catch (error1) {
e = error1;
if (e) {

@@ -206,0 +206,0 @@ err = e.message;

@@ -5,3 +5,3 @@ (function() {

_ = require('lodash');
_ = require('./utilities');

@@ -8,0 +8,0 @@ Types = (function() {

{
"name": "scheming",
"version": "2.1.5",
"version": "2.1.6",
"main": "./dest/node/Scheming.js",

@@ -9,38 +9,34 @@ "repository": "https://github.com/autoric/scheming",

},
"dependencies": {
"lodash": "^3.9.3"
},
"devDependencies": {
"browserify-global-shim": "^1.0.0",
"chai": "~1.9.2",
"coffee-script": "~1.7.1",
"coffeeify": "^1.1.0",
"chai": "^3.5.0",
"coffee-script": "~1.12.2",
"coffeeify": "^2.1.0",
"gulp": "^3.9.0",
"gulp-browserify": "^0.5.1",
"gulp-clean": "^0.3.1",
"gulp-coffee": "~2.2.0",
"gulp-coffee": "~2.3.0",
"gulp-coffee-istanbul": "^0.7.1",
"gulp-groc": "~0.4.1",
"gulp-insert": "^0.4.0",
"gulp-load-plugins": "~0.7.0",
"gulp-mocha": "~2.0.0",
"gulp-load-plugins": "~1.4.0",
"gulp-mocha": "~3.0.0",
"gulp-rename": "^1.2.2",
"karma": "^0.12.37",
"jsverify": "^0.7.4",
"karma": "^1.3.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^0.2.0",
"karma-coffee-preprocessor": "^0.2.1",
"karma-mocha": "^0.2.0",
"karma-phantomjs-launcher": "^0.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-coffee-preprocessor": "^1.0.1",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.2",
"karma-sinon": "~1.0.3",
"karma-sinon-chai": "^1.0.0",
"mocha": "^2.2.5",
"lodash": "^4.17.2",
"mocha": "^3.2.0",
"phantomjs": "^2.1.7",
"proxyquire": "^1.5.0",
"shelljs": "~0.3.0",
"sinon": "~1.11.1",
"sinon-chai": "~2.6.0",
"yargs": "~1.3.3"
},
"browserify-global-shim": {
"lodash": "_"
"shelljs": "~0.7.0",
"sinon": "^1.11.1",
"sinon-chai": "^2.6.0",
"yargs": "~6.5.0"
}
}
}

@@ -40,3 +40,3 @@ # Scheming!

console.log Person.validate jane
console.log User.validate jane
# {name : 'Field is required.', email: 'An email address must have an @ symbol!'}

@@ -47,3 +47,3 @@

console.log Person.validate jane
console.log User.validate jane
# null

@@ -542,2 +542,6 @@

## v2.1.6
- Removed lodash as a dependency. Utility methods used were implemented in this project to decrease upgrade pains when lodash comes out with new versions (especially in browser usage)
- Added property/fuzz testing for utility functions. These tests can be moved into their own task later if it become a problem
## v2.1.5

@@ -566,3 +570,3 @@ - Update docs with unwatch, better explanation of Mixed types.

- TravisCI!
- Adds `registerQueueCallback`, `registerResolveCallback`, `unregisterQueueCallback`, and `unregisterResolveCallback` functions, exposing hooks into Scheming's change management events.
- Adds `registerQueueCallback`, `registerResolveCallback`, `unregisterQueueCallback`, and `unregisterResolveCallback` functions, exposing hooks into Scheming's change management events.
- Fixed issues with watching of arrays and propagating of changes in arrays of nested schemas, dodging the need to ever cloneDeep. Performance improvement!

@@ -569,0 +573,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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