Skip to content

Commit 1f33649

Browse files
committed
update: @nodescript/core
1 parent fe09816 commit 1f33649

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"dependencies": {
2727
"@nodescript/base64": "^1.1.1",
2828
"@nodescript/buffer-utils": "^1.5.0",
29-
"@nodescript/core": "^7.22.0",
29+
"@nodescript/core": "^7.23.0",
3030
"@nodescript/object-trim": "^1.1.0"
3131
},
3232
"devDependencies": {

src/nodes/Array.FindWhere.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type R = unknown;
1515

1616
export const module: ModuleDefinition<P, R> = {
1717
moduleName: 'Array / Find Where',
18-
version: '1.1.0',
18+
version: '1.1.1',
1919
description: `
2020
Returns items from the array that match specified conditions.
2121
`,
@@ -34,8 +34,9 @@ export const module: ModuleDefinition<P, R> = {
3434
keyof: 'array',
3535
},
3636
},
37-
value: {
38-
schema: { type: 'any' },
37+
not: {
38+
schema: { type: 'boolean' },
39+
advanced: true,
3940
},
4041
op: {
4142
schema: {
@@ -44,9 +45,8 @@ export const module: ModuleDefinition<P, R> = {
4445
default: WhereOp.EQUALS,
4546
},
4647
},
47-
not: {
48-
schema: { type: 'boolean' },
49-
advanced: true,
48+
value: {
49+
schema: { type: 'any' },
5050
},
5151
limit: {
5252
schema: { type: 'number', optional: true },

src/nodes/Flow.Catch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const compute: ModuleCompute<P, R> = async (params, ctx) => {
4242
const value = await ctx.resolveDeferred(params.value);
4343
return { value };
4444
} catch (error: any) {
45-
if (error.code === 'EPENDING') {
45+
if (ctx.isControlException(error)) {
4646
throw error;
4747
}
4848
return {

src/nodes/Flow.Try.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const compute: ModuleCompute<P, R> = async (params, ctx) => {
3131
try {
3232
return await ctx.resolveDeferred(step);
3333
} catch (error: any) {
34-
if (error.code === 'EPENDING') {
34+
if (ctx.isControlException(error)) {
3535
throw error;
3636
}
3737
lastError = error;

0 commit comments

Comments
 (0)