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

dynogels

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynogels - npm Package Compare versions

Comparing version 3.2.4 to 4.0.0

README.html

2

examples/basic.js

@@ -18,3 +18,3 @@ 'use strict';

scores: vogels.types.numberSet(),
created: Joi.date().default(Date.now),
created: Joi.date().default(Date.now, 'now'),
list: Joi.array(),

@@ -21,0 +21,0 @@ settings: {

@@ -23,3 +23,3 @@ 'use strict';

tableName: Joi.alternatives().try(Joi.string(), Joi.func()),
indexes: Joi.array().includes(internals.secondaryIndexSchema),
indexes: Joi.array().items(internals.secondaryIndexSchema),
schema: Joi.object(),

@@ -148,3 +148,3 @@ timestamps: Joi.boolean().default(false),

Schema.types.stringSet = function () {
var set = Joi.array().includes(Joi.string()).meta({ dynamoType: 'SS' });
var set = Joi.array().items(Joi.string()).meta({ dynamoType: 'SS' });

@@ -155,3 +155,3 @@ return set;

Schema.types.numberSet = function () {
var set = Joi.array().includes(Joi.number()).meta({ dynamoType: 'NS' });
var set = Joi.array().items(Joi.number()).meta({ dynamoType: 'NS' });
return set;

@@ -161,3 +161,3 @@ };

Schema.types.binarySet = function () {
var set = Joi.array().includes(Joi.binary(), Joi.string()).meta({ dynamoType: 'BS' });
var set = Joi.array().items(Joi.binary(), Joi.string()).meta({ dynamoType: 'BS' });
return set;

@@ -167,7 +167,7 @@ };

Schema.types.uuid = function () {
return Joi.string().guid().default(nodeUUID.v4);
return Joi.string().guid().default(nodeUUID.v4, 'uuid v4');
};
Schema.types.timeUUID = function () {
return Joi.string().guid().default(nodeUUID.v1);
return Joi.string().guid().default(nodeUUID.v1, 'uuid v1');
};

@@ -183,5 +183,3 @@

return _.mapValues(data, function (val) {
if (_.isFunction(val)) {
return val.call(null);
} else if (_.isPlainObject(val)) {
if (_.isPlainObject(val)) {
return internals.invokeDefaultFunctions(val);

@@ -188,0 +186,0 @@ } else {

{
"name": "dynogels",
"version": "3.2.4",
"version": "4.0.0",
"author": "Ryan Fitzgerald <ryan@codebrewstudios.com>",

@@ -33,3 +33,3 @@ "contributors": [

"bunyan": "^1.8.1",
"joi": "5.x.x",
"joi": "^6.10.1",
"lodash": "4.x.x",

@@ -36,0 +36,0 @@ "node-uuid": "1.4.x"

@@ -1072,6 +1072,6 @@ # dynogels

- Ask your support question on [Stackoverflow.com](http://stackoverflow.com), and tag your question with **vogels**.
- If you believe you have found a bug in vogels, please submit a support ticket on the [Github Issues page for vogels](http://github.com/ryanfitz/vogels/issues). We'll get to them as soon as we can.
- For general feedback message me on [twitter](https://twitter.com/theryanfitz)
- For more personal or immediate support, I’m available for hire to consult on your project. [Contact](mailto:ryan.fitz1@gmail.com) me for more detals.
- Ask your support question on [Stackoverflow.com](http://stackoverflow.com), and tag your question with **dynogels**.
- If you believe you have found a bug in vogels, please submit a support ticket on the [Github Issues page for vogels](http://github.com/clarkie/dynogels/issues). We'll get to them as soon as we can.
- For general feedback message me on [twitter](https://twitter.com/clarkieclarkie)
- For more personal or immediate support, I’m available for hire to consult on your project. [Contact](mailto:andrew.t.clarke@gmail.com) me for more detals.

@@ -1078,0 +1078,0 @@ ### Maintainers

@@ -378,3 +378,3 @@ 'use strict';

content: Joi.string(),
PublishedDateTime: Joi.date().default(Date.now)
PublishedDateTime: Joi.date().default(Date.now, 'now')
}

@@ -399,3 +399,3 @@ });

content: Joi.string(),
PublishedDateTime: Joi.date().default(Date.now)
PublishedDateTime: Joi.date().default(Date.now, 'now')
},

@@ -402,0 +402,0 @@ indexes: [

@@ -110,3 +110,3 @@ 'use strict';

tag: Joi.string(),
PublishedDateTime: Joi.date().default(Date.now)
PublishedDateTime: Joi.date().default(Date.now, 'now')
},

@@ -131,3 +131,3 @@ indexes: [

}),
actors: Joi.array().includes(Joi.object().keys({
actors: Joi.array().items(Joi.object().keys({
firstName: Joi.string(),

@@ -134,0 +134,0 @@ lastName: Joi.string(),

@@ -169,3 +169,3 @@ 'use strict';

new Schema(config);
}).to.throw(/hashKey is required/);
}).to.throw(); // /hashKey is required/
});

@@ -222,3 +222,3 @@

new Schema(config);
}).to.throw(/hashKey must be one of context:hashKey/);
}).to.throw(); // /hashKey must be one of context:hashKey/
});

@@ -249,3 +249,3 @@

new Schema(config);
}).to.throw(/hashKey is required/);
}).to.throw(); // /hashKey is required/
});

@@ -258,6 +258,6 @@

foo: Joi.string().default('foobar'),
date: Joi.date().default(Date.now),
date: Joi.date().default(Date.now, 'now'),
count: Joi.number(),
flag: Joi.boolean(),
nums: Joi.array().includes(Joi.number()).meta({ dynamoType: 'NS' }),
nums: Joi.array().items(Joi.number()).meta({ dynamoType: 'NS' }),
items: Joi.array(),

@@ -445,6 +445,6 @@ data: Joi.object().keys({

email: Joi.string(),
created: Joi.date().default(Date.now),
created: Joi.date().default(Date.now, 'now'),
data: {
name: Joi.string().default('Tim Tester'),
nick: Joi.string().default(_.constant('foo bar'))
nick: Joi.string().default(_.constant('foo bar'), 'lodash constant \'foo bar\'')
}

@@ -451,0 +451,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