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

jsft

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsft - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

5

lib/_tests/test.Schema.js

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

describe('.assertValid()', function () {
it('should return the subject', function () {
var res = _Schema2.default.assertValid(_bookSchema2.default, _book2.default);
(0, _chai.expect)(res).to.equal(_book2.default);
});
it('should pass valid subjects', function () {

@@ -61,0 +66,0 @@ _Schema2.default.assertValid(_bookSchema2.default, _book2.default);

2

lib/Schema.js

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

* @param {string} [messagePrefix] Error message prefix
* @return {object} Subject (for call chains)
*/

@@ -77,2 +78,3 @@ function assertValid(schema, subject) {

}
return subject;
}

@@ -79,0 +81,0 @@

2

package.json
{
"name": "jsft",
"version": "0.3.2",
"version": "0.3.3",
"description": "Functional tools for working with objects with structures defined with json-schema",

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

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