scandit-cordova-datacapture-text
Advanced tools
Comparing version 6.17.2 to 6.18.0-beta.1
{ | ||
"name": "scandit-cordova-datacapture-text", | ||
"version": "6.17.2", | ||
"version": "6.18.0-beta.1", | ||
"description": "Scandit Data Capture SDK for Cordova", | ||
@@ -18,3 +18,3 @@ "license": "Apache-2.0", | ||
"test": "npm run lint && jest", | ||
"lint": "tslint --project .", | ||
"lint": "eslint ./www/ts", | ||
"coverage": "jest --coverage", | ||
@@ -27,8 +27,11 @@ "clear-jest-cache": "jest --clearCache || true", | ||
"devDependencies": { | ||
"typescript": "^3.7.7", | ||
"@types/jest": "^24.0.13", | ||
"jest": "^24.8.0", | ||
"jest-canvas-mock": "^2.2.0", | ||
"ts-jest": "^24.0.2", | ||
"tslint": "^5.16.0" | ||
"typescript": "4.9.5", | ||
"@types/jest": "29.5.0", | ||
"jest": "29.5.0", | ||
"jest-canvas-mock": "2.5.0", | ||
"ts-jest": "29.0.5", | ||
"jest-environment-jsdom": "29.5.0", | ||
"eslint": "8.36.0", | ||
"@typescript-eslint/parser": "5.54.1", | ||
"@typescript-eslint/eslint-plugin": "5.54.1" | ||
}, | ||
@@ -35,0 +38,0 @@ "cordova": { |
@@ -12,11 +12,11 @@ "use strict"; | ||
defaults: {}, | ||
exec: (success, error, functionName, args) => CommonCordova_1.cordovaExec(success, error, exports.Cordova.pluginName, functionName, args), | ||
exec: (success, error, functionName, args) => (0, CommonCordova_1.cordovaExec)(success, error, exports.Cordova.pluginName, functionName, args), | ||
}; | ||
const getDefaults = new Promise((resolve, reject) => { | ||
exports.Cordova.exec((defaultsJSON) => { | ||
exports.Cordova.defaults = Defaults_1.defaultsFromJSON(defaultsJSON); | ||
exports.Cordova.defaults = (0, Defaults_1.defaultsFromJSON)(defaultsJSON); | ||
resolve(); | ||
}, reject, 'getDefaults', null); | ||
}); | ||
CommonCordova_1.initializePlugin(exports.Cordova.pluginName, getDefaults); | ||
(0, CommonCordova_1.initializePlugin)(exports.Cordova.pluginName, getDefaults); | ||
var CordovaFunction; | ||
@@ -23,0 +23,0 @@ (function (CordovaFunction) { |
@@ -8,3 +8,3 @@ "use strict"; | ||
const Common_1 = require("scandit-cordova-datacapture-core.Common"); | ||
exports.defaultsFromJSON = (json) => { | ||
const defaultsFromJSON = (json) => { | ||
return { | ||
@@ -30,1 +30,2 @@ TextCapture: { | ||
}; | ||
exports.defaultsFromJSON = defaultsFromJSON; |
@@ -87,6 +87,6 @@ "use strict"; | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('enabled') | ||
(0, Serializeable_1.nameForSerialization)('enabled') | ||
], TextCapture.prototype, "_isEnabled", void 0); | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('feedback') | ||
(0, Serializeable_1.nameForSerialization)('feedback') | ||
], TextCapture.prototype, "_feedback", void 0); | ||
@@ -93,0 +93,0 @@ __decorate([ |
@@ -44,9 +44,2 @@ "use strict"; | ||
class TextCaptureOverlay extends Serializeable_1.DefaultSerializeable { | ||
constructor() { | ||
super(); | ||
this.type = 'textCapture'; | ||
this._shouldShowScanAreaGuides = false; | ||
this._viewfinder = null; | ||
this._brush = TextCaptureOverlay.defaultBrush; | ||
} | ||
static get defaultBrush() { | ||
@@ -87,2 +80,9 @@ return new Viewfinder_1.Brush(Cordova_1.Cordova.defaults.TextCapture.TextCaptureOverlay.DefaultBrush.fillColor, Cordova_1.Cordova.defaults.TextCapture.TextCaptureOverlay.DefaultBrush.strokeColor, Cordova_1.Cordova.defaults.TextCapture.TextCaptureOverlay.DefaultBrush.strokeWidth); | ||
} | ||
constructor() { | ||
super(); | ||
this.type = 'textCapture'; | ||
this._shouldShowScanAreaGuides = false; | ||
this._viewfinder = null; | ||
this._brush = TextCaptureOverlay.defaultBrush; | ||
} | ||
} | ||
@@ -93,11 +93,11 @@ __decorate([ | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('shouldShowScanAreaGuides') | ||
(0, Serializeable_1.nameForSerialization)('shouldShowScanAreaGuides') | ||
], TextCaptureOverlay.prototype, "_shouldShowScanAreaGuides", void 0); | ||
__decorate([ | ||
Serializeable_1.serializationDefault(Viewfinder_1.NoViewfinder), | ||
Serializeable_1.nameForSerialization('viewfinder') | ||
(0, Serializeable_1.serializationDefault)(Viewfinder_1.NoViewfinder), | ||
(0, Serializeable_1.nameForSerialization)('viewfinder') | ||
], TextCaptureOverlay.prototype, "_viewfinder", void 0); | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('brush') | ||
(0, Serializeable_1.nameForSerialization)('brush') | ||
], TextCaptureOverlay.prototype, "_brush", void 0); | ||
exports.TextCaptureOverlay = TextCaptureOverlay; |
@@ -14,8 +14,2 @@ "use strict"; | ||
class TextCaptureSettings extends Serializeable_1.DefaultSerializeable { | ||
constructor() { | ||
super(); | ||
this.duplicateFilter = Cordova_1.Cordova.defaults.TextCapture.TextCaptureSettings.duplicateFilter; | ||
this.locationSelection = null; | ||
this.recognitionDirection = Cordova_1.Cordova.defaults.TextCapture.TextCaptureSettings.recognitionDirection; | ||
} | ||
static fromJSON(json) { | ||
@@ -28,6 +22,12 @@ const settings = new TextCaptureSettings(); | ||
} | ||
constructor() { | ||
super(); | ||
this.duplicateFilter = Cordova_1.Cordova.defaults.TextCapture.TextCaptureSettings.duplicateFilter; | ||
this.locationSelection = null; | ||
this.recognitionDirection = Cordova_1.Cordova.defaults.TextCapture.TextCaptureSettings.recognitionDirection; | ||
} | ||
} | ||
__decorate([ | ||
Serializeable_1.serializationDefault(LocationSelection_1.NoneLocationSelection) | ||
(0, Serializeable_1.serializationDefault)(LocationSelection_1.NoneLocationSelection) | ||
], TextCaptureSettings.prototype, "locationSelection", void 0); | ||
exports.TextCaptureSettings = TextCaptureSettings; |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
92590
545
9
2