New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@journeyapps/db

Package Overview
Dependencies
Maintainers
2
Versions
308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@journeyapps/db - npm Package Compare versions

Comparing version 5.0.3 to 5.1.0

3

dist/src/Attachment.js

@@ -13,3 +13,4 @@ "use strict";

}
else if (typeof attachment.id == 'string' && typeof attachment.present == 'function') {
else if (typeof attachment.id == 'string' &&
typeof attachment.present == 'function') {
return true;

@@ -16,0 +17,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function validateAdapter(batchAdapter, object) {
if (object._adapter === batchAdapter || object._adapter.name == batchAdapter.name) {
if (object._adapter === batchAdapter ||
object._adapter.name == batchAdapter.name) {
return;
}
throw new Error('Cannot add an object in ' + object._adapter.description() + ' to a Batch in ' + batchAdapter.description());
throw new Error('Cannot add an object in ' +
object._adapter.description() +
' to a Batch in ' +
batchAdapter.description());
}

@@ -170,3 +174,4 @@ class Batch {

if (op.op == 'patch') {
if (Object.keys(op.patch.attributes).length === 0 && Object.keys(op.patch.belongs_to).length === 0) {
if (Object.keys(op.patch.attributes).length === 0 &&
Object.keys(op.patch.belongs_to).length === 0) {
// No-op

@@ -188,3 +193,9 @@ continue;

errors.forEach(function (error) {
message += '\n ' + error.object.type.name + ' ' + error.object.id + ': ' + error.error.detail;
message +=
'\n ' +
error.object.type.name +
' ' +
error.object.id +
': ' +
error.error.detail;
});

@@ -191,0 +202,0 @@ this.message = message;

@@ -355,3 +355,4 @@ "use strict";

for (let display of columns) {
if (display && typeof display.extractRelationshipStructure == 'function') {
if (display &&
typeof display.extractRelationshipStructure == 'function') {
deepMerge(relationships, display.extractRelationshipStructure(type));

@@ -364,3 +365,4 @@ }

const display = columns[key];
if (display && typeof display.extractRelationshipStructure == 'function') {
if (display &&
typeof display.extractRelationshipStructure == 'function') {
deepMerge(relationships, display.extractRelationshipStructure(type));

@@ -367,0 +369,0 @@ }

@@ -70,3 +70,4 @@ "use strict";

}
else if (typeof attributeValue == 'string' && typeof this.value == 'string') {
else if (typeof attributeValue == 'string' &&
typeof this.value == 'string') {
if (attributeValue < this.value) {

@@ -84,3 +85,5 @@ compareDiff = -1;

// Compare seconds only
compareDiff = discardMillis(attributeValue.getTime()) - discardMillis(this.value.getTime());
compareDiff =
discardMillis(attributeValue.getTime()) -
discardMillis(this.value.getTime());
}

@@ -92,3 +95,4 @@ else if (attributeValue instanceof core_date_1.Day || this.value instanceof core_date_1.Day) {

// Also works for JSON strings.
compareDiff = new core_date_1.Day(attributeValue).valueOf() - new core_date_1.Day(this.value).valueOf();
compareDiff =
new core_date_1.Day(attributeValue).valueOf() - new core_date_1.Day(this.value).valueOf();
}

@@ -137,3 +141,3 @@ catch (err) {

if (typeof attributeValue == 'string' && typeof this.value == 'string') {
return attributeValue.toLowerCase().indexOf(this.value.toLowerCase()) >= 0;
return (attributeValue.toLowerCase().indexOf(this.value.toLowerCase()) >= 0);
}

@@ -146,3 +150,3 @@ else {

if (typeof attributeValue == 'string' && typeof this.value == 'string') {
return attributeValue.toLowerCase().indexOf(this.value.toLowerCase()) === 0;
return (attributeValue.toLowerCase().indexOf(this.value.toLowerCase()) === 0);
}

@@ -163,3 +167,6 @@ else {

// Works for both relationships (user = ?) and relationship ids (user_id = ?)
return [this.attribute.relationship + '_id ' + this.operator + ' ?', this.value];
return [
this.attribute.relationship + '_id ' + this.operator + ' ?',
this.value
];
}

@@ -365,3 +372,4 @@ else {

function isLetter(character) {
return (character >= 'a' && character <= 'z') || (character >= 'A' && character <= 'Z');
return ((character >= 'a' && character <= 'z') ||
(character >= 'A' && character <= 'Z'));
}

@@ -387,3 +395,8 @@ function isDigit(character) {

exception(message, start, end) {
let error = new Error(message + '\n' + this.expression + '\n' + new Array(this.i + 1).join(' ') + '^');
let error = new Error(message +
'\n' +
this.expression +
'\n' +
new Array(this.i + 1).join(' ') +
'^');
if (start == null) {

@@ -441,3 +454,4 @@ start = this.i;

this.checkBuffer();
if (this.expression[this.i] == '?' && (this.isWordSeparator(this.i + 1) || this.expression[this.i + 1] == ')')) {
if (this.expression[this.i] == '?' &&
(this.isWordSeparator(this.i + 1) || this.expression[this.i + 1] == ')')) {
this.i += 1;

@@ -503,3 +517,4 @@ this.advance();

if (token == this.expression.substring(this.i, this.i + token.length)) {
if (!isLetter(token[token.length - 1]) || this.isWordSeparator(this.i + token.length)) {
if (!isLetter(token[token.length - 1]) ||
this.isWordSeparator(this.i + token.length)) {
return true;

@@ -575,3 +590,7 @@ }

if (attribute == null) {
throw this.tokenizer.exception("'" + attributeName + "' is not a valid field of '" + this.scopeType.name + "'", attributeStart, attributeEnd);
throw this.tokenizer.exception("'" +
attributeName +
"' is not a valid field of '" +
this.scopeType.name +
"'", attributeStart, attributeEnd);
}

@@ -578,0 +597,0 @@ else if (attribute.type.isCollection) {

@@ -38,4 +38,3 @@ "use strict";

tx.loggedSql('SELECT * FROM versions WHERE name=?', ['db'], retrievedVersion);
})
.then(() => {
}).then(() => {
return this.promisedTransaction(function (tx) {

@@ -370,7 +369,3 @@ if (version < 1) {

transactionSaveData(tx, data, patch) {
tx.loggedSql('INSERT OR REPLACE INTO objects(id, type, data) VALUES (?,?,?)', [
data.id,
data.type,
JSON.stringify(data)
]);
tx.loggedSql('INSERT OR REPLACE INTO objects(id, type, data) VALUES (?,?,?)', [data.id, data.type, JSON.stringify(data)]);
}

@@ -377,0 +372,0 @@ transactionDestroy(tx, type, id) {

{
"name": "@journeyapps/db",
"version": "5.0.3",
"version": "5.1.0",
"description": "Journey JS library",

@@ -16,5 +16,5 @@ "main": "./dist/src/index.js",

"@journeyapps/core-date": "5.0.1",
"@journeyapps/core-xml": "4.0.1",
"@journeyapps/evaluator": "5.0.1",
"@journeyapps/parser-schema": "5.0.2",
"@journeyapps/core-xml": "4.1.0",
"@journeyapps/evaluator": "5.1.0",
"@journeyapps/parser-schema": "5.1.0",
"isomorphic-fetch": "^2.2.1",

@@ -32,3 +32,3 @@ "moment": "^2.24.0",

],
"gitHead": "3262b216750fd6383292e0f6a36551cdb702a804"
"gitHead": "cf6c6164d75166033224c51e7ddfa640ad38d755"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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