Skip to content

Commit bb4ea0b

Browse files
committed
feat: update
1 parent 8e79cce commit bb4ea0b

File tree

4 files changed

+25
-20
lines changed

4 files changed

+25
-20
lines changed

declare/npm.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ declare module 'gulp-concat-css';
6969
declare module 'gulp-strip-css-comments';
7070
declare module 'circular-dependency-plugin';
7171
declare module '@babel/plugin-proposal-optional-chaining';
72+
declare module '@babel/plugin-proposal-nullish-coalescing-operator';

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pri",
3-
"version": "4.0.4",
3+
"version": "4.0.5",
44
"types": "src/node/index.ts",
55
"main": "built/node/index.js",
66
"scripts": {
@@ -33,6 +33,7 @@
3333
"@babel/plugin-proposal-export-namespace-from": "7.7.4",
3434
"@babel/plugin-proposal-function-sent": "7.7.4",
3535
"@babel/plugin-proposal-json-strings": "7.7.4",
36+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
3637
"@babel/plugin-proposal-numeric-separator": "7.7.4",
3738
"@babel/plugin-proposal-optional-catch-binding": "7.7.4",
3839
"@babel/plugin-proposal-optional-chaining": "^7.7.5",

src/utils/babel-options.ts

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import babelPluginProposalNumericSeparator from '@babel/plugin-proposal-numeric-
77
import babelPluginProposalOptionalCatchBinding from '@babel/plugin-proposal-optional-catch-binding';
88
import babelPluginProposalThrowExpressions from '@babel/plugin-proposal-throw-expressions';
99
import babelPluginProposalOptionalChaining from '@babel/plugin-proposal-optional-chaining';
10+
import babelPluginProposalNullishCoalescingOperator from '@babel/plugin-proposal-nullish-coalescing-operator';
1011
import babelPluginSyntaxDynamicImport from '@babel/plugin-syntax-dynamic-import';
1112
import babelPluginSyntaxImportMeta from '@babel/plugin-syntax-import-meta';
1213
import transformRuntime from '@babel/plugin-transform-runtime';
@@ -40,6 +41,7 @@ export function getBabelOptions(options?: Partial<DefaultOptions>) {
4041
[babelPluginProposalNumericSeparator],
4142
[babelPluginProposalThrowExpressions],
4243
[babelPluginProposalOptionalChaining],
44+
[babelPluginProposalNullishCoalescingOperator],
4345
[babelPluginSyntaxDynamicImport],
4446
[babelPluginSyntaxImportMeta],
4547
[babelPluginProposalClassProperties, { loose: true }],

yarn.lock

+20-19
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@
189189
resolved "https://registry.npm.alibaba-inc.com/@babel/helper-plugin-utils/download/@babel/helper-plugin-utils-7.0.0.tgz#bbb3fbee98661c569034237cc03967ba99b4f250"
190190
integrity sha1-u7P77phmHFaQNCN8wDlnupm08lA=
191191

192+
"@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3":
193+
version "7.8.3"
194+
resolved "https://registry.npm.alibaba-inc.com/@babel/helper-plugin-utils/download/@babel/helper-plugin-utils-7.8.3.tgz#9ea293be19babc0f52ff8ca88b34c3611b208670"
195+
integrity sha1-nqKTvhm6vA9S/4yoizTDYRsghnA=
196+
192197
"@babel/helper-regex@^7.0.0", "@babel/helper-regex@^7.4.4":
193198
version "7.5.5"
194199
resolved "https://registry.npm.alibaba-inc.com/@babel/helper-regex/download/@babel/helper-regex-7.5.5.tgz#0aa6824f7100a2e0e89c1527c23936c152cab351"
@@ -324,6 +329,14 @@
324329
"@babel/helper-plugin-utils" "^7.0.0"
325330
"@babel/plugin-syntax-json-strings" "^7.7.4"
326331

332+
"@babel/plugin-proposal-nullish-coalescing-operator@^7.8.3":
333+
version "7.8.3"
334+
resolved "https://registry.npm.alibaba-inc.com/@babel/plugin-proposal-nullish-coalescing-operator/download/@babel/plugin-proposal-nullish-coalescing-operator-7.8.3.tgz#e4572253fdeed65cddeecfdab3f928afeb2fd5d2"
335+
integrity sha1-5FciU/3u1lzd7s/as/kor+sv1dI=
336+
dependencies:
337+
"@babel/helper-plugin-utils" "^7.8.3"
338+
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0"
339+
327340
328341
version "7.7.4"
329342
resolved "https://registry.npm.alibaba-inc.com/@babel/plugin-proposal-numeric-separator/download/@babel/plugin-proposal-numeric-separator-7.7.4.tgz#7819a17445f4197bb9575e5750ed349776da858a"
@@ -443,6 +456,13 @@
443456
dependencies:
444457
"@babel/helper-plugin-utils" "^7.0.0"
445458

459+
"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.0":
460+
version "7.8.3"
461+
resolved "https://registry.npm.alibaba-inc.com/@babel/plugin-syntax-nullish-coalescing-operator/download/@babel/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9"
462+
integrity sha1-Fn7XA2iIYIH3S1w2xlqIwDtm0ak=
463+
dependencies:
464+
"@babel/helper-plugin-utils" "^7.8.0"
465+
446466
"@babel/plugin-syntax-numeric-separator@^7.7.4":
447467
version "7.7.4"
448468
resolved "https://registry.npm.alibaba-inc.com/@babel/plugin-syntax-numeric-separator/download/@babel/plugin-syntax-numeric-separator-7.7.4.tgz#39818f8042a09d4c6248d85d82555369da4da5c4"
@@ -5122,13 +5142,6 @@ [email protected]:
51225142
read-pkg-up "^2.0.0"
51235143
resolve "^1.11.0"
51245144

5125-
5126-
version "3.1.1"
5127-
resolved "https://registry.npm.alibaba-inc.com/eslint-plugin-prettier/download/eslint-plugin-prettier-3.1.1.tgz#507b8562410d02a03f0ddc949c616f877852f2ba"
5128-
integrity sha1-UHuFYkENAqA/DdyUnGFvh3hS8ro=
5129-
dependencies:
5130-
prettier-linter-helpers "^1.0.0"
5131-
51325145
51335146
version "2.3.0"
51345147
resolved "https://registry.npm.alibaba-inc.com/eslint-plugin-react-hooks/download/eslint-plugin-react-hooks-2.3.0.tgz#53e073961f1f5ccf8dd19558036c1fac8c29d99a"
@@ -5523,11 +5536,6 @@ fast-deep-equal@^2.0.1:
55235536
resolved "https://registry.npm.alibaba-inc.com/fast-deep-equal/download/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49"
55245537
integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=
55255538

5526-
fast-diff@^1.1.2:
5527-
version "1.2.0"
5528-
resolved "https://registry.npm.alibaba-inc.com/fast-diff/download/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"
5529-
integrity sha1-c+4RmC2Gyq95WYKNUZz+kn+sXwM=
5530-
55315539
fast-json-stable-stringify@^2.0.0:
55325540
version "2.0.0"
55335541
resolved "https://registry.npm.alibaba-inc.com/fast-json-stable-stringify/download/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
@@ -10892,13 +10900,6 @@ preserve@^0.2.0:
1089210900
resolved "https://registry.npm.alibaba-inc.com/preserve/download/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
1089310901
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
1089410902

10895-
prettier-linter-helpers@^1.0.0:
10896-
version "1.0.0"
10897-
resolved "https://registry.npm.alibaba-inc.com/prettier-linter-helpers/download/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
10898-
integrity sha1-0j1B/hN1ZG3i0BBNNFSjAIgCz3s=
10899-
dependencies:
10900-
fast-diff "^1.1.2"
10901-
1090210903
1090310904
version "1.19.1"
1090410905
resolved "https://registry.npm.alibaba-inc.com/prettier/download/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"

0 commit comments

Comments
 (0)