@getyoti/react-face-capture 0.1.0-beta.1 → 0.3.1

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/package.json CHANGED
@@ -1,20 +1,26 @@
1
1
  {
2
2
  "name": "@getyoti/react-face-capture",
3
- "version": "0.1.0-beta.1",
3
+ "version": "0.3.1",
4
4
  "description": "Face capture module to collect picture and data for Yoti AI API",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "start": "NODE_ENV=development webpack-dev-server --config ./tools/webpack-dev-config.babel.js",
8
- "build": "NODE_ENV=production webpack --config ./tools/webpack-prod-config.babel.js",
8
+ "build": "NODE_ENV=production webpack --config ./tools/webpack-prod-config.babel.js && npm run copy-assets",
9
+ "lint": "prettier 'src/**/*.{js,jsx,json,md,css,scss,html}' --write && eslint --ext .jsx,.js src",
10
+ "lint:fix": "npm run lint -- --fix",
9
11
  "test": "jest --config ./tools/jest.config.json",
10
12
  "test:watch": "npm run test -- --watch",
11
13
  "test:coverage": "npm run test -- --coverage",
12
14
  "npm-version": "npm --no-git-tag-version version",
13
15
  "audit": "audit-ci -h",
14
16
  "updateBrowserSupport": "node ./tools/updateBrowserSupport.js",
15
- "copy-assets": "cp -f package.json dist; cp -f CHANGELOG.md dist; cp -f LICENCE.md dist; cp -f docs/integrator.md dist/README.md",
16
- "publishDist": "npm run copy-assets && npm publish dist",
17
- "publishDist:dry": "npm run copy-assets && npm publish dist --dry-run"
17
+ "copy-assets": "cp -f package.json dist; cp -f CHANGELOG.md dist; cp -f LICENCE.md dist; cp -f docs/integrators.md dist/README.md",
18
+ "publishToNpm": "npm publish dist --access=public",
19
+ "publishToNexus": "npm publish dist",
20
+ "publish:check": "npm publish dist --dry-run",
21
+ "lingui:extract": "lingui extract --clean",
22
+ "lingui:compile": "lingui compile --strict --verbose",
23
+ "lingui:build": "npm run lingui:extract && npm run lingui:compile"
18
24
  },
19
25
  "author": "Yoti LTD",
20
26
  "license": "Yoti Face Capture Licence",
@@ -23,7 +29,10 @@
23
29
  "npm": "6.4.1"
24
30
  },
25
31
  "dependencies": {
32
+ "@lingui/macro": "3.6.0",
33
+ "@lingui/react": "3.6.0",
26
34
  "@svgr/parcel-plugin-svgr": "5.1.0",
35
+ "babel-plugin-macros": "3.0.1",
27
36
  "classnames": "2.2.6",
28
37
  "face-api.js": "0.22.0",
29
38
  "react-webcam": "4.1.1"
@@ -39,6 +48,7 @@
39
48
  "@babel/preset-env": "7.12.1",
40
49
  "@babel/preset-react": "7.12.5",
41
50
  "@babel/register": "7.12.1",
51
+ "@lingui/cli": "3.6.0",
42
52
  "@testing-library/jest-dom": "5.11.6",
43
53
  "@testing-library/react": "11.1.2",
44
54
  "@yoti/webpack-config": "0.1.0-alpha.9",
@@ -60,7 +70,9 @@
60
70
  "eslint-plugin-react": "7.21.5",
61
71
  "eslint-plugin-react-hooks": "4.2.0",
62
72
  "eslint-plugin-testing-library": "3.10.0",
73
+ "husky": "4.3.8",
63
74
  "jest": "26.6.3",
75
+ "lint-staged": "9.5.0",
64
76
  "markdown-table": "2.0.0",
65
77
  "modules": "0.4.0",
66
78
  "postcss-modules": "1.5.0",