@digipair/skill-webcam 0.113.1 → 0.114.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # skill-test
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build skill-webcam` to build the library.
@@ -1,11 +1,8 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var NodeWebcam = require('node-webcam');
6
4
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
5
+ function _interopNamespaceDefault(e) {
9
6
  var n = Object.create(null);
10
7
  if (e) {
11
8
  Object.keys(e).forEach(function (k) {
@@ -18,11 +15,11 @@ function _interopNamespace(e) {
18
15
  }
19
16
  });
20
17
  }
21
- n["default"] = e;
18
+ n.default = e;
22
19
  return Object.freeze(n);
23
20
  }
24
21
 
25
- var NodeWebcam__namespace = /*#__PURE__*/_interopNamespace(NodeWebcam);
22
+ var NodeWebcam__namespace = /*#__PURE__*/_interopNamespaceDefault(NodeWebcam);
26
23
 
27
24
  let WebcamService = class WebcamService {
28
25
  async capture(params, _pinsSettingsList, _context) {
@@ -34,7 +31,7 @@ let WebcamService = class WebcamService {
34
31
  delay: 0,
35
32
  saveShots: false,
36
33
  output,
37
- device: device != null ? device : false,
34
+ device: device ?? false,
38
35
  callbackReturn: 'base64',
39
36
  verbose
40
37
  };
@@ -10,7 +10,7 @@ let WebcamService = class WebcamService {
10
10
  delay: 0,
11
11
  saveShots: false,
12
12
  output,
13
- device: device != null ? device : false,
13
+ device: device ?? false,
14
14
  callbackReturn: 'base64',
15
15
  verbose
16
16
  };
@@ -1 +1,2 @@
1
1
  export * from './lib/skill-webcam';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import { PinsSettings } from '@digipair/engine';
2
2
  export declare const capture: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<string>;
3
3
  export declare const list: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<string[]>;
4
+ //# sourceMappingURL=skill-webcam.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-webcam.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-webcam.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA8ChD,eAAO,MAAM,OAAO,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,oBACnB,CAAC;AAEjE,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,sBACnB,CAAC"}
package/package.json CHANGED
@@ -1,14 +1,35 @@
1
1
  {
2
2
  "name": "@digipair/skill-webcam",
3
- "version": "0.113.1",
3
+ "version": "0.114.2",
4
+ "main": "./dist/index.cjs.js",
5
+ "module": "./dist/index.esm.js",
6
+ "types": "./dist/index.d.ts",
4
7
  "keywords": [
5
8
  "digipair",
6
9
  "service",
7
10
  "tool"
8
11
  ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.esm.js",
16
+ "default": "./dist/index.cjs.js"
17
+ },
18
+ "./index.esm.js": "./dist/index.esm.js",
19
+ "./index.cjs.js": "./dist/index.cjs.js",
20
+ "./package.json": "./package.json",
21
+ "./schema.json": "./dist/schema.json",
22
+ "./schema.fr.json": "./dist/schema.fr.json"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "README.md",
27
+ "package.json"
28
+ ],
29
+ "nx": {
30
+ "name": "skill-webcam"
31
+ },
9
32
  "dependencies": {
10
33
  "node-webcam": "^0.8.2"
11
- },
12
- "main": "./index.cjs.js",
13
- "module": "./index.esm.js"
14
- }
34
+ }
35
+ }
package/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './libs/skill-webcam/src/index';
File without changes
File without changes
File without changes