orange-orm 4.6.1 → 4.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.mjs +6 -6
- package/dist/index.mjs +6 -6
- package/docs/changelog.md +5 -1
- package/package.json +1 -1
- package/src/getManyDto.js +2 -2
- package/src/sqlite/selectForUpdateSql.js +2 -2
- package/src/table/column/string/endsWithCore.js +1 -1
- package/src/table/query/singleQuery/negotiateExclusive.js +1 -1
package/dist/index.browser.mjs
CHANGED
|
@@ -4366,7 +4366,7 @@ function requireEndsWithCore () {
|
|
|
4366
4366
|
var nullOperator = ' is ';
|
|
4367
4367
|
|
|
4368
4368
|
function endsWithCore(context, operator, column,arg,alias) {
|
|
4369
|
-
alias = quote(alias);
|
|
4369
|
+
alias = quote(context, alias);
|
|
4370
4370
|
operator = ' ' + operator + ' ';
|
|
4371
4371
|
var encoded = column.encode(context, arg);
|
|
4372
4372
|
if (encoded.sql() == 'null')
|
|
@@ -6074,7 +6074,7 @@ function requireNegotiateExclusive () {
|
|
|
6074
6074
|
function negotiateExclusive(context, table, alias, _exclusive) {
|
|
6075
6075
|
if (table._exclusive || _exclusive) {
|
|
6076
6076
|
var encode = getSessionSingleton(context, 'selectForUpdateSql');
|
|
6077
|
-
return encode(alias);
|
|
6077
|
+
return encode(context, alias);
|
|
6078
6078
|
}
|
|
6079
6079
|
return '';
|
|
6080
6080
|
}
|
|
@@ -11069,8 +11069,8 @@ function requireGetManyDto$1 () {
|
|
|
11069
11069
|
return decode(context, strategy[name], leg.span, rawRows, keys, updateParent);
|
|
11070
11070
|
|
|
11071
11071
|
function updateParent(subRow, i) {
|
|
11072
|
-
resultRows[i]
|
|
11073
|
-
|
|
11072
|
+
if (resultRows[i])
|
|
11073
|
+
resultRows[i][name] = subRow;
|
|
11074
11074
|
}
|
|
11075
11075
|
};
|
|
11076
11076
|
|
|
@@ -12610,8 +12610,8 @@ function requireSelectForUpdateSql () {
|
|
|
12610
12610
|
hasRequiredSelectForUpdateSql = 1;
|
|
12611
12611
|
const quote = requireQuote$1();
|
|
12612
12612
|
|
|
12613
|
-
selectForUpdateSql = function(alias) {
|
|
12614
|
-
return ' FOR UPDATE OF ' + quote(alias);
|
|
12613
|
+
selectForUpdateSql = function(context, alias) {
|
|
12614
|
+
return ' FOR UPDATE OF ' + quote(context, alias);
|
|
12615
12615
|
};
|
|
12616
12616
|
return selectForUpdateSql;
|
|
12617
12617
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4368,7 +4368,7 @@ function requireEndsWithCore () {
|
|
|
4368
4368
|
var nullOperator = ' is ';
|
|
4369
4369
|
|
|
4370
4370
|
function endsWithCore(context, operator, column,arg,alias) {
|
|
4371
|
-
alias = quote(alias);
|
|
4371
|
+
alias = quote(context, alias);
|
|
4372
4372
|
operator = ' ' + operator + ' ';
|
|
4373
4373
|
var encoded = column.encode(context, arg);
|
|
4374
4374
|
if (encoded.sql() == 'null')
|
|
@@ -6076,7 +6076,7 @@ function requireNegotiateExclusive () {
|
|
|
6076
6076
|
function negotiateExclusive(context, table, alias, _exclusive) {
|
|
6077
6077
|
if (table._exclusive || _exclusive) {
|
|
6078
6078
|
var encode = getSessionSingleton(context, 'selectForUpdateSql');
|
|
6079
|
-
return encode(alias);
|
|
6079
|
+
return encode(context, alias);
|
|
6080
6080
|
}
|
|
6081
6081
|
return '';
|
|
6082
6082
|
}
|
|
@@ -11071,8 +11071,8 @@ function requireGetManyDto$2 () {
|
|
|
11071
11071
|
return decode(context, strategy[name], leg.span, rawRows, keys, updateParent);
|
|
11072
11072
|
|
|
11073
11073
|
function updateParent(subRow, i) {
|
|
11074
|
-
resultRows[i]
|
|
11075
|
-
|
|
11074
|
+
if (resultRows[i])
|
|
11075
|
+
resultRows[i][name] = subRow;
|
|
11076
11076
|
}
|
|
11077
11077
|
};
|
|
11078
11078
|
|
|
@@ -15495,8 +15495,8 @@ function requireSelectForUpdateSql$3 () {
|
|
|
15495
15495
|
hasRequiredSelectForUpdateSql$3 = 1;
|
|
15496
15496
|
const quote = requireQuote$6();
|
|
15497
15497
|
|
|
15498
|
-
selectForUpdateSql$3 = function(alias) {
|
|
15499
|
-
return ' FOR UPDATE OF ' + quote(alias);
|
|
15498
|
+
selectForUpdateSql$3 = function(context, alias) {
|
|
15499
|
+
return ' FOR UPDATE OF ' + quote(context, alias);
|
|
15500
15500
|
};
|
|
15501
15501
|
return selectForUpdateSql$3;
|
|
15502
15502
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
## Changelog
|
|
2
|
+
__4.6.3__
|
|
3
|
+
Bugfix: Chained Reference relation throws if first one is null. See [#126](https://github.com/alfateam/issues/126)
|
|
4
|
+
__4.6.2__
|
|
5
|
+
Bugfix: crashed when combining endsWith filter with other filter: e.g. `endsWith('foo').or(...)`
|
|
2
6
|
__4.6.1__
|
|
3
|
-
Bugfix: No intellisense when running in browser mode . See [#125](https://github.com/alfateam/)
|
|
7
|
+
Bugfix: No intellisense when running in browser mode . See [#125](https://github.com/alfateam/issues/125)
|
|
4
8
|
__4.6.0__
|
|
5
9
|
Support for Deno and Bun.
|
|
6
10
|
Using builtin sqlite for Node22++.
|
package/package.json
CHANGED
package/src/getManyDto.js
CHANGED
|
@@ -338,8 +338,8 @@ async function decodeRelations2(context, strategy, span, rawRows, resultRows, ke
|
|
|
338
338
|
return decode(context, strategy[name], leg.span, rawRows, keys, updateParent);
|
|
339
339
|
|
|
340
340
|
function updateParent(subRow, i) {
|
|
341
|
-
resultRows[i]
|
|
342
|
-
|
|
341
|
+
if (resultRows[i])
|
|
342
|
+
resultRows[i][name] = subRow;
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
|
|
@@ -3,7 +3,7 @@ var newBoolean = require('../newBoolean');
|
|
|
3
3
|
var nullOperator = ' is ';
|
|
4
4
|
|
|
5
5
|
function endsWithCore(context, operator, column,arg,alias) {
|
|
6
|
-
alias = quote(alias);
|
|
6
|
+
alias = quote(context, alias);
|
|
7
7
|
operator = ' ' + operator + ' ';
|
|
8
8
|
var encoded = column.encode(context, arg);
|
|
9
9
|
if (encoded.sql() == 'null')
|
|
@@ -3,7 +3,7 @@ var getSessionSingleton = require('../../getSessionSingleton');
|
|
|
3
3
|
function negotiateExclusive(context, table, alias, _exclusive) {
|
|
4
4
|
if (table._exclusive || _exclusive) {
|
|
5
5
|
var encode = getSessionSingleton(context, 'selectForUpdateSql');
|
|
6
|
-
return encode(alias);
|
|
6
|
+
return encode(context, alias);
|
|
7
7
|
}
|
|
8
8
|
return '';
|
|
9
9
|
}
|