@use-symbology-scanner/core
Advanced tools
Comparing version 1.0.2 to 1.0.3
# @use-symbology-scanner/core | ||
## 1.0.3 | ||
### Patch Changes | ||
- 6436d5e: Support React strict mode. | ||
## 1.0.2 | ||
@@ -4,0 +10,0 @@ |
@@ -44,3 +44,3 @@ import { Config, InternalConfig, InternalHandler } from './types'; | ||
*/ | ||
effect(): void; | ||
effect(): () => void; | ||
/** | ||
@@ -47,0 +47,0 @@ * Cleans all side effects (listeners, timeouts). When the symbology scanner is |
@@ -158,5 +158,6 @@ 'use strict'; | ||
this.bind(); | ||
return this.clean(); | ||
return () => this.clean(); | ||
} | ||
clean() { | ||
this.resetSequence(); | ||
if (this.listener) this.listener(); | ||
@@ -163,0 +164,0 @@ this.listener = undefined; |
@@ -158,5 +158,6 @@ 'use strict'; | ||
this.bind(); | ||
return this.clean(); | ||
return () => this.clean(); | ||
} | ||
clean() { | ||
this.resetSequence(); | ||
if (this.listener) this.listener(); | ||
@@ -163,0 +164,0 @@ this.listener = undefined; |
@@ -155,5 +155,6 @@ import { S as STANDARD_SYMBOLOGIES, a as STANDARD_SYMBOLOGY_KEYS, _ as _defineProperty, e as encodeKey } from './symbologies-d40d544d.esm.js'; | ||
this.bind(); | ||
return this.clean(); | ||
return () => this.clean(); | ||
} | ||
clean() { | ||
this.resetSequence(); | ||
if (this.listener) this.listener(); | ||
@@ -160,0 +161,0 @@ this.listener = undefined; |
{ | ||
"name": "@use-symbology-scanner/core", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "dist/use-symbology-scanner-core.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/use-symbology-scanner-core.esm.js", |
@@ -84,2 +84,3 @@ import { configResolver, resolveWith } from './config' | ||
private keyDown(event: KeyboardEvent) { | ||
clearTimeout(this.timeout) | ||
@@ -149,3 +150,3 @@ | ||
this.bind() | ||
return this.clean() | ||
return () => this.clean() | ||
} | ||
@@ -158,2 +159,3 @@ | ||
clean() { | ||
this.resetSequence() | ||
if (this.listener) this.listener() | ||
@@ -160,0 +162,0 @@ this.listener = undefined |
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
51629
1582