scandit-cordova-datacapture-id
Advanced tools
Comparing version 6.17.2 to 6.18.0-beta.1
{ | ||
"name": "scandit-cordova-datacapture-id", | ||
"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": { |
@@ -481,2 +481,3 @@ "use strict"; | ||
if (!json) { | ||
// @ts-ignore | ||
resolve(); | ||
@@ -483,0 +484,0 @@ } |
@@ -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 { | ||
@@ -40,1 +40,2 @@ IdCapture: { | ||
}; | ||
exports.defaultsFromJSON = defaultsFromJSON; |
@@ -79,3 +79,3 @@ "use strict"; | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('enabled') | ||
(0, Serializeable_1.nameForSerialization)('enabled') | ||
], IdCapture.prototype, "_isEnabled", void 0); | ||
@@ -82,0 +82,0 @@ __decorate([ |
@@ -63,2 +63,13 @@ "use strict"; | ||
class IdCaptureOverlay extends Serializeable_1.DefaultSerializeable { | ||
static withIdCapture(idCapture) { | ||
return IdCaptureOverlay.withIdCaptureForView(idCapture, null); | ||
} | ||
static withIdCaptureForView(idCapture, view) { | ||
const overlay = new IdCaptureOverlay(); | ||
overlay.idCapture = idCapture; | ||
if (view) { | ||
view.addOverlay(overlay); | ||
} | ||
return overlay; | ||
} | ||
constructor() { | ||
@@ -77,13 +88,2 @@ super(); | ||
} | ||
static withIdCapture(idCapture) { | ||
return IdCaptureOverlay.withIdCaptureForView(idCapture, null); | ||
} | ||
static withIdCaptureForView(idCapture, view) { | ||
const overlay = new IdCaptureOverlay(); | ||
overlay.idCapture = idCapture; | ||
if (view) { | ||
view.addOverlay(overlay); | ||
} | ||
return overlay; | ||
} | ||
setIdLayout(idLayout) { | ||
@@ -142,19 +142,19 @@ this._idLayout = idLayout; | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('idLayout') | ||
(0, Serializeable_1.nameForSerialization)('idLayout') | ||
], IdCaptureOverlay.prototype, "_idLayout", void 0); | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('idLayoutStyle') | ||
(0, Serializeable_1.nameForSerialization)('idLayoutStyle') | ||
], IdCaptureOverlay.prototype, "_idLayoutStyle", void 0); | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('capturedBrush') | ||
(0, Serializeable_1.nameForSerialization)('capturedBrush') | ||
], IdCaptureOverlay.prototype, "_capturedBrush", void 0); | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('localizedBrush') | ||
(0, Serializeable_1.nameForSerialization)('localizedBrush') | ||
], IdCaptureOverlay.prototype, "_localizedBrush", void 0); | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('rejectedBrush') | ||
(0, Serializeable_1.nameForSerialization)('rejectedBrush') | ||
], IdCaptureOverlay.prototype, "_rejectedBrush", void 0); | ||
__decorate([ | ||
Serializeable_1.nameForSerialization('idLayoutLineStyle') | ||
(0, Serializeable_1.nameForSerialization)('idLayoutLineStyle') | ||
], IdCaptureOverlay.prototype, "_idLayoutLineStyle", void 0); | ||
exports.IdCaptureOverlay = IdCaptureOverlay; |
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
151849
1898
9
2