Comparing version 17.0.0 to 17.2.0
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 16.0.0 | ||
* @version 17.0.0 | ||
* @author waiting | ||
@@ -168,3 +168,8 @@ * @license MIT | ||
if (subject.closed) { | ||
throw new Error('Kmore:subject already closed'); | ||
// throw new Error('Kmore:subject already closed') | ||
console.warn({ | ||
msg: 'Kmore event:subject already closed. skip tracing.', | ||
input, | ||
}); | ||
return; | ||
} | ||
@@ -226,3 +231,3 @@ const ev = { | ||
unsubscribe() { | ||
this.subject.unsubscribe(); | ||
this.subject.closed || this.subject.unsubscribe(); | ||
} | ||
@@ -229,0 +234,0 @@ createRefTables(dbh, prefix) { |
@@ -35,3 +35,8 @@ import { initKmoreEvent } from './config'; | ||
if (subject.closed) { | ||
throw new Error('Kmore:subject already closed'); | ||
// throw new Error('Kmore:subject already closed') | ||
console.warn({ | ||
msg: 'Kmore event:subject already closed. skip tracing.', | ||
input, | ||
}); | ||
return; | ||
} | ||
@@ -38,0 +43,0 @@ const ev = { |
@@ -31,3 +31,3 @@ import { knex } from 'knex'; | ||
unsubscribe() { | ||
this.subject.unsubscribe(); | ||
this.subject.closed || this.subject.unsubscribe(); | ||
} | ||
@@ -34,0 +34,0 @@ createRefTables(dbh, prefix) { |
{ | ||
"name": "kmore", | ||
"author": "waiting", | ||
"version": "17.0.0", | ||
"version": "17.2.0", | ||
"description": "A SQL query builder based on knex with powerful TypeScript type support", | ||
@@ -103,3 +103,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "a66dc6fc20f12f149dd0b9d7c45836b5c26c3fcc" | ||
"gitHead": "1fd14df13e5538276e5abea7550f9aa20de7af54" | ||
} |
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
53391
708
39