azure-entities
Advanced tools
Comparing version 5.2.0 to 5.3.0
{ | ||
"name": "azure-entities", | ||
"version": "5.2.0", | ||
"version": "5.3.0", | ||
"author": "Jonas Finnemann Jensen <jopsen@gmail.com>", | ||
@@ -17,18 +17,15 @@ "description": "azure-entities", | ||
"dependencies": { | ||
"ajv": "^5.3.0", | ||
"debug": "^3.1.0", | ||
"fast-azure-storage": "^2.3.0", | ||
"ajv": "^6.9.2", | ||
"debug": "^4.1.1", | ||
"fast-azure-storage": "^2.3.1", | ||
"json-stable-stringify": "^1.0.0", | ||
"lodash": "^4.17.4", | ||
"promise": "^8.0.1", | ||
"slugid": "^1.0.3" | ||
"lodash": "^4.17.11", | ||
"slugid": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"azure-table-node": "^1.4.1", | ||
"eslint-config-taskcluster": "^3.0.0", | ||
"express": "^4.16.2", | ||
"mocha": "^4.0.1", | ||
"eslint-config-taskcluster": "^4.0.0", | ||
"express": "^4.16.4", | ||
"mocha": "^6.0.1", | ||
"rewire": "^4.0.1", | ||
"sinon": "^6.1.4", | ||
"typed-env-config": "^1.1.0" | ||
"sinon": "^7.2.4" | ||
}, | ||
@@ -35,0 +32,0 @@ "main": "./src/entity", |
@@ -6,3 +6,2 @@ /* eslint-disable consistent-this */ | ||
var _ = require('lodash'); | ||
var Promise = require('promise'); | ||
var debug = require('debug')('base:entity'); | ||
@@ -674,3 +673,3 @@ var azure = require('fast-azure-storage'); | ||
if (options.credentials == 'inMemory') { | ||
if (options.credentials === 'inMemory') { | ||
if (!inmemory) { | ||
@@ -677,0 +676,0 @@ inmemory = require('./inmemory'); // lazy-loaded |
@@ -23,4 +23,4 @@ | ||
var comparisonFuncs = {}; | ||
comparisonFuncs[azTableOps.Equal] = function(x, y) { return x == y; }; | ||
comparisonFuncs[azTableOps.NotEqual] = function(x, y) { return x != y; }; | ||
comparisonFuncs[azTableOps.Equal] = function(x, y) { return x === y; }; | ||
comparisonFuncs[azTableOps.NotEqual] = function(x, y) { return x !== y; }; | ||
comparisonFuncs[azTableOps.GreaterThan] = function(x, y) { return x > y; }; | ||
@@ -27,0 +27,0 @@ comparisonFuncs[azTableOps.GreaterThanOrEqual] = function(x, y) { return x >= y; }; |
@@ -199,4 +199,4 @@ /** | ||
while (entities.length > 0 && | ||
(entities[0].PartitionKey != partitionKey || | ||
entities[0].RowKey != rowKey)) { | ||
(entities[0].PartitionKey !== partitionKey || | ||
entities[0].RowKey !== rowKey)) { | ||
entities.shift(); | ||
@@ -306,8 +306,8 @@ } | ||
if (tables[this.table][key]) { | ||
if (options.eTag != '*') { | ||
if (options.eTag && options.eTag != entityEtag(tables[this.table][key])) { | ||
if (options.eTag !== '*') { | ||
if (options.eTag && options.eTag !== entityEtag(tables[this.table][key])) { | ||
throw makeError(412, 'UpdateConditionNotSatisfied'); | ||
} | ||
} | ||
if (options.mode == 'replace') { | ||
if (options.mode === 'replace') { | ||
tables[this.table][key] = entity; | ||
@@ -324,3 +324,3 @@ } else { | ||
tables[this.table][key] = entity; | ||
} else if (options.eTag != '*') { | ||
} else if (options.eTag !== '*') { | ||
throw makeError(404, 'ResourceNotFound'); | ||
@@ -364,4 +364,4 @@ } | ||
} | ||
if (options.eTag != '*') { | ||
if (options.eTag != entityEtag(table[key])) { | ||
if (options.eTag !== '*') { | ||
if (options.eTag !== entityEtag(table[key])) { | ||
throw makeError(412, 'UpdateConditionNotSatisfied'); | ||
@@ -368,0 +368,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
6
5
142482
2891
+ Addedajv@6.12.6(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedslugid@2.0.0(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addeduuid-parse@1.1.0(transitive)
- Removedpromise@^8.0.1
- Removedajv@5.5.2(transitive)
- Removedco@4.6.0(transitive)
- Removedfast-deep-equal@1.1.0(transitive)
- Removedjson-schema-traverse@0.3.1(transitive)
- Removedslugid@1.1.0(transitive)
- Removeduuid@2.0.3(transitive)
Updatedajv@^6.9.2
Updateddebug@^4.1.1
Updatedfast-azure-storage@^2.3.1
Updatedlodash@^4.17.11
Updatedslugid@^2.0.0