Socket
Socket
Sign inDemoInstall

resourceful

Package Overview
Dependencies
56
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

3

lib/resourceful/core.js

@@ -149,3 +149,4 @@ var events = require('events'),

id: {
type: 'string',
type: 'any',
required: false
}

@@ -152,0 +153,0 @@ },

@@ -564,3 +564,3 @@ var util = require('util'),

}
p.save(function(err, result){

@@ -567,0 +567,0 @@ callback(err, c);

{
"name": "resourceful",
"description": "A storage agnostic resource-oriented ODM for building prototypical models with validation and sanitization.",
"version": "0.3.0",
"version": "0.3.1",
"url": "http://github.com/flatiron/resourceful",

@@ -6,0 +6,0 @@ "keywords": [

@@ -68,3 +68,3 @@ var assert = require('assert'),

"and doesn't have a value for `key`": function (article) {
assert.isUndefined(article.key);
assert.isNull(article.key);
}

@@ -119,3 +119,3 @@ }

"should respond to toString()": function (r) {
assert.equal(r.toString(), '{"title":"The Great Gatsby","kind":"Classic Novels","resource":"Book"}');
assert.equal(r.toString(), '{"id":null,"title":"The Great Gatsby","kind":"Classic Novels","resource":"Book"}');
},

@@ -122,0 +122,0 @@ "should respond to toJSON()": function (r) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc