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

polyclay

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polyclay - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

2

lib/persistence.js

@@ -39,2 +39,4 @@ // General storage interface.

}
else
keyfield = 'key';

@@ -41,0 +43,0 @@ modelfunc.prototype.keyfield = keyfield;

2

package.json
{
"name": "polyclay",
"version": "1.5.2",
"version": "1.5.3",
"description": "a schema-enforcing model class for node with optional key-value store persistence",

@@ -5,0 +5,0 @@ "author": "C J Silverio <ceejceej@gmail.com>",

@@ -155,2 +155,19 @@ /*global describe:true, it:true, before:true, after:true */

it('defaults the key field name to `key` when none is provided', function()
{
var Ephemeral = polyclay.Model.buildClass(
{
properties:
{
'key': 'string'
}
});
polyclay.persist(Ephemeral);
var obj = new Ephemeral();
obj.should.have.property('keyfield');
obj.keyfield.should.be.a('string');
assert(obj.keyfield === 'key', 'keyfield property is not `key`!');
});
it('throws when passed a model without polyclay attributes', function()

@@ -157,0 +174,0 @@ {

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