Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "datastar", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Now witness the power of this FULLY ARMED AND OPERATIONAL DATASTAR!", | ||
@@ -27,2 +27,3 @@ "main": "lib", | ||
"cassandra-driver": "^3.0.2", | ||
"datastar-test-tools": "~1.0.0", | ||
"eslint-plugin-json": "^1.2.0", | ||
@@ -29,0 +30,0 @@ "eslint-plugin-mocha": "^1.1.0", |
'use strict'; | ||
var assume = require('assume'), | ||
Datastar = require('../../lib'), | ||
helpers = require('../helpers'); | ||
var assume = require('assume'), | ||
Datastar = require('../../lib'), | ||
datastarTestTools = require('datastar-test-tools'); | ||
var helpers = datastarTestTools.helpers; | ||
@@ -8,0 +9,0 @@ describe('Datastar', function () { |
@@ -5,9 +5,11 @@ 'use strict'; | ||
var assume = require('assume'), | ||
uuid = require('uuid'), | ||
async = require('async'), | ||
clone = require('clone'), | ||
helpers = require('../helpers'), | ||
schemas = require('../fixtures/schemas'); | ||
var assume = require('assume'), | ||
uuid = require('uuid'), | ||
async = require('async'), | ||
clone = require('clone'), | ||
schemas = require('../fixtures/schemas'), | ||
datastarTestTools = require('datastar-test-tools'); | ||
var helpers = datastarTestTools.helpers; | ||
/*eslint no-invalid-this: 1*/ | ||
@@ -783,3 +785,3 @@ describe('Model', function () { | ||
it('should run a find query with a limit of 1 and return 1 record' , function (done) { | ||
it('should run a find query with a limit of 1 and return 1 record', function (done) { | ||
Foo.findAll({ conditions: {}, limit: 1 }, function (err, recs) { | ||
@@ -786,0 +788,0 @@ assume(err).is.falsey(); |
'use strict'; | ||
var assume = require('assume'), | ||
mocks = require('../mocks'); | ||
var assume = require('assume'), | ||
datastarTestTools = require('datastar-test-tools'); | ||
var mocks = datastarTestTools.mocks; | ||
describe('Datastar (unit)', function () { | ||
@@ -7,0 +9,0 @@ var Datastar; |
'use strict'; | ||
var assume = require('assume'), | ||
helpers = require('../helpers'), | ||
mocks = require('../mocks'), | ||
entity = require('../fixtures/dog'), | ||
schemas = require('../fixtures/schemas'); | ||
var assume = require('assume'), | ||
dataStarTestTools = require('datastar-test-tools'), | ||
entity = require('../fixtures/dog'), | ||
schemas = require('../fixtures/schemas'); | ||
var helpers = dataStarTestTools.helpers, | ||
mocks = dataStarTestTools.mocks; | ||
assume.use(require('assume-sinon')); | ||
@@ -10,0 +13,0 @@ |
'use strict'; | ||
var assume = require('assume'), | ||
uuid = require('uuid'), | ||
helpers = require('../helpers'), | ||
mocks = require('../mocks'), | ||
schemas = require('../fixtures/schemas'), | ||
sinon = require('sinon'); | ||
var assume = require('assume'), | ||
uuid = require('uuid'), | ||
datastarTestTools = require('datastar-test-tools'), | ||
schemas = require('../fixtures/schemas'), | ||
sinon = require('sinon'); | ||
var helpers = datastarTestTools.helpers, | ||
mocks = datastarTestTools.mocks; | ||
assume.use(require('assume-sinon')); | ||
@@ -11,0 +13,0 @@ |
'use strict'; | ||
var assume = require('assume'), | ||
joi = require('joi-of-cql'), | ||
helpers = require('../helpers'), | ||
schemas = require('../fixtures/schemas'), | ||
Schema = require('../../lib/schema'); | ||
var assume = require('assume'), | ||
datastarTestTools = require('datastar-test-tools'), | ||
joi = require('joi-of-cql'), | ||
schemas = require('../fixtures/schemas'), | ||
Schema = require('../../lib/schema'); | ||
var debug = helpers.debug, | ||
cql = joi.cql; | ||
var helpers = datastarTestTools.helpers, | ||
debug = helpers.debug, | ||
cql = joi.cql; | ||
@@ -28,3 +29,7 @@ describe('Schema (unit)', function () { | ||
}); | ||
function init() { Schema('invalid', invalid); } | ||
function init() { | ||
Schema('invalid', invalid); | ||
} | ||
assume(init).throws(/must define a partitionKey/); | ||
@@ -34,3 +39,6 @@ }); | ||
it('should throw an error when given an invalid name for the schema', function () { | ||
function init() { Schema('has-dashes'); } | ||
function init() { | ||
Schema('has-dashes'); | ||
} | ||
assume(init).throws('Invalid character in schema name'); | ||
@@ -37,0 +45,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
3
186394
14
36
4705