@untemps/react-vocal 1.7.9 → 1.7.12
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/CHANGELOG.md +6 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +13 -12
- package/rollup.config.js +1 -1
- package/src/components/Vocal.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@untemps/react-vocal",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.12",
|
|
4
4
|
"author": "Vincent Le Badezet <v.lebadezet@untemps.net>",
|
|
5
5
|
"repository": "git@github.com:untemps/react-vocal.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,29 +38,30 @@
|
|
|
38
38
|
"@rollup/plugin-babel": "^5.2.2",
|
|
39
39
|
"@rollup/plugin-commonjs": "^17.0.0",
|
|
40
40
|
"@rollup/plugin-node-resolve": "^11.0.1",
|
|
41
|
-
"@semantic-release/changelog": "^
|
|
42
|
-
"@semantic-release/git": "^
|
|
43
|
-
"@semantic-release/github": "^
|
|
41
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
42
|
+
"@semantic-release/git": "^10.0.1",
|
|
43
|
+
"@semantic-release/github": "^8.0.4",
|
|
44
44
|
"@testing-library/dom": "^7.29.0",
|
|
45
45
|
"@testing-library/jest-dom": "^5.11.6",
|
|
46
46
|
"@testing-library/react": "^11.2.2",
|
|
47
47
|
"@testing-library/react-hooks": "^3.7.0",
|
|
48
|
-
"@untemps/utils": "^
|
|
49
|
-
"babel-jest": "^
|
|
48
|
+
"@untemps/utils": "^2.0.0-beta.1",
|
|
49
|
+
"babel-jest": "^28.0.0-alpha.11",
|
|
50
50
|
"cross-env": "^7.0.3",
|
|
51
51
|
"husky": "^4.3.6",
|
|
52
|
-
"jest": "^28.0.0-alpha.
|
|
53
|
-
"jest-environment-jsdom": "^28.0.0-alpha.
|
|
52
|
+
"jest": "^28.0.0-alpha.11",
|
|
53
|
+
"jest-environment-jsdom": "^28.0.0-alpha.11",
|
|
54
54
|
"prettier": "^2.2.1",
|
|
55
55
|
"prop-types": "^15.7.2",
|
|
56
56
|
"react": "^17.0.1",
|
|
57
57
|
"react-dom": "^17.0.1",
|
|
58
58
|
"react-test-renderer": "^17.0.1",
|
|
59
|
+
"rimraf": "^3.0.2",
|
|
59
60
|
"rollup": "^2.35.1",
|
|
60
|
-
"rollup-plugin-
|
|
61
|
+
"rollup-plugin-sizes": "^1.0.4",
|
|
61
62
|
"rollup-plugin-terser": "^7.0.2",
|
|
62
63
|
"rollup-plugin-visualizer": "^4.2.0",
|
|
63
|
-
"semantic-release": "^
|
|
64
|
+
"semantic-release": "^19.0.3"
|
|
64
65
|
},
|
|
65
66
|
"peerDependencies": {
|
|
66
67
|
"react": "^16.13.1",
|
|
@@ -126,10 +127,10 @@
|
|
|
126
127
|
]
|
|
127
128
|
},
|
|
128
129
|
"scripts": {
|
|
129
|
-
"dev": "cd dev &&
|
|
130
|
+
"dev": "cd dev && rimraf dist && yarn && yarn start",
|
|
130
131
|
"test": "jest -u --watch",
|
|
131
132
|
"test:ci": "jest -u -b --ci --coverage",
|
|
132
|
-
"build": "
|
|
133
|
+
"build": "rimraf dist && yarn build:cjs && yarn build:es && yarn build:umd",
|
|
133
134
|
"build:cjs": "cross-env NODE_ENV=production BABEL_ENV=cjs rollup -c",
|
|
134
135
|
"build:es": "cross-env NODE_ENV=production BABEL_ENV=es rollup -c",
|
|
135
136
|
"build:umd": "cross-env NODE_ENV=production BABEL_ENV=umd rollup -c",
|
package/rollup.config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import babel from '@rollup/plugin-babel'
|
|
2
2
|
import commonjs from '@rollup/plugin-commonjs'
|
|
3
3
|
import resolve from '@rollup/plugin-node-resolve'
|
|
4
|
-
import filesize from 'rollup-plugin-
|
|
4
|
+
import filesize from 'rollup-plugin-sizes'
|
|
5
5
|
import { terser } from 'rollup-plugin-terser'
|
|
6
6
|
import visualizer from 'rollup-plugin-visualizer'
|
|
7
7
|
|
package/src/components/Vocal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { cloneElement, isValidElement, useRef, useState } from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import { Vocal as SpeechRecognitionWrapper } from '@untemps/vocal'
|
|
4
|
-
import isFunction from '@untemps/utils/function/isFunction'
|
|
4
|
+
import { isFunction } from '@untemps/utils/function/isFunction'
|
|
5
5
|
|
|
6
6
|
import useVocal from '../hooks/useVocal'
|
|
7
7
|
import useTimeout from '../hooks/useTimeout'
|