@nmtjs/client
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -11,2 +11,3 @@ import { Client } from "./client.js"; | ||
get: (target, prop, receiver)=>{ | ||
if (prop === 'then') return target; | ||
return this.createCaller(serviceName, prop); | ||
@@ -13,0 +14,0 @@ } |
@@ -76,2 +76,6 @@ import type { TServiceContract, TSubscriptionContract } from '@nmtjs/contract' | ||
get: (target, prop, receiver) => { | ||
// `await client.call.serviceName` or `await client.call.serviceName.procedureName` | ||
// without explicitly calling a function implicitly calls .then() on target | ||
// FIXME: this basically makes "then" a reserved word | ||
if (prop === 'then') return target | ||
return this.createCaller(serviceName, prop as string) | ||
@@ -78,0 +82,0 @@ }, |
@@ -22,5 +22,5 @@ { | ||
"dependencies": { | ||
"@nmtjs/type": "0.4.3", | ||
"@nmtjs/contract": "0.4.3", | ||
"@nmtjs/common": "0.4.3" | ||
"@nmtjs/type": "0.4.4", | ||
"@nmtjs/common": "0.4.4", | ||
"@nmtjs/contract": "0.4.4" | ||
}, | ||
@@ -35,3 +35,3 @@ "files": [ | ||
], | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"scripts": { | ||
@@ -38,0 +38,0 @@ "build": "neemata-build -p neutral ./index.ts './lib/**/*.ts'", |
Sorry, the diff of this file is not supported yet
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
61470
892
+ Added@nmtjs/common@0.4.4(transitive)
+ Added@nmtjs/contract@0.4.4(transitive)
+ Added@nmtjs/type@0.4.4(transitive)
- Removed@nmtjs/common@0.4.3(transitive)
- Removed@nmtjs/contract@0.4.3(transitive)
- Removed@nmtjs/type@0.4.3(transitive)
Updated@nmtjs/common@0.4.4
Updated@nmtjs/contract@0.4.4
Updated@nmtjs/type@0.4.4