Skip to content

Commit

Permalink
chore: fix valse values (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design authored Jun 15, 2021
1 parent 42573cb commit 8536093
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 19 deletions.
23 changes: 23 additions & 0 deletions src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,29 @@ export default {
`,
},
},
false: {
config: {
modules: ['~/../src', '~/modules/module'],
},
files: {
'modules/module.js': endent`
export default function () {
this.extendRoutes(routes =>
expect(routes[0].meta.foo).toEqual(false)
)
}
`,
'pages/index.vue': endent`
<script>
export default {
foo: false,
render: () => <div />
}
</script>
`,
},
},
meta: {
config: {
modules: ['~/../src', '~/modules/module'],
Expand Down
58 changes: 39 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,28 @@
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.14.5.tgz#8ef4c18e58e801c5c95d3c1c0f2874a2680fadea"
integrity sha512-kixrYn4JwfAVPa0f2yfzc2AWti6WRRyO3XjWW5PJAvtE11qhSayrrcrEnee05KAtNaPC+EwehE8Qt1UedEVB8w==

"@babel/core@^7.1.0", "@babel/core@^7.10.2", "@babel/core@^7.11.1", "@babel/core@^7.14.0", "@babel/core@^7.6.4", "@babel/core@^7.7.2", "@babel/core@^7.7.5", "@babel/core@^7.7.7":
"@babel/core@^7.1.0", "@babel/core@^7.7.5":
version "7.14.6"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.14.6.tgz#e0814ec1a950032ff16c13a2721de39a8416fcab"
integrity sha512-gJnOEWSqTk96qG5BoIrl5bVtc23DCycmIePPYnamY9RboYdI4nFy5vAQMSl81O5K/W0sLDWfGysnOECC+KUUCA==
dependencies:
"@babel/code-frame" "^7.14.5"
"@babel/generator" "^7.14.5"
"@babel/helper-compilation-targets" "^7.14.5"
"@babel/helper-module-transforms" "^7.14.5"
"@babel/helpers" "^7.14.6"
"@babel/parser" "^7.14.6"
"@babel/template" "^7.14.5"
"@babel/traverse" "^7.14.5"
"@babel/types" "^7.14.5"
convert-source-map "^1.7.0"
debug "^4.1.0"
gensync "^1.0.0-beta.2"
json5 "^2.1.2"
semver "^6.3.0"
source-map "^0.5.0"

"@babel/core@^7.10.2", "@babel/core@^7.11.1", "@babel/core@^7.14.0", "@babel/core@^7.6.4", "@babel/core@^7.7.2", "@babel/core@^7.7.7":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.14.5.tgz#d281f46a9905f07d1b3bf71ead54d9c7d89cb1e3"
integrity sha512-RN/AwP2DJmQTZSfiDaD+JQQ/J99KsIpOCfBE5pL+5jJSt7nI3nYGoAXZu+ffYSQ029NLs2DstZb+eR81uuARgg==
Expand Down Expand Up @@ -265,10 +286,10 @@
"@babel/traverse" "^7.14.5"
"@babel/types" "^7.14.5"

"@babel/helpers@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.14.5.tgz#4870f8d9a6fdbbd65e5674a3558b4ff7fef0d9b2"
integrity sha512-xtcWOuN9VL6nApgVHtq3PPcQv5qFBJzoSZzJ/2c0QK/IP/gxVcoWSNQwFEGvmbQsuS9rhYqjILDGGXcTkA705Q==
"@babel/helpers@^7.14.5", "@babel/helpers@^7.14.6":
version "7.14.6"
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.14.6.tgz#5b58306b95f1b47e2a0199434fa8658fa6c21635"
integrity sha512-yesp1ENQBiLI+iYHSJdoZKUtRpfTlL1grDIX9NRlAVppljLw/4tTyYupIB7uIYmC3stW/imAv8EqaKaS/ibmeA==
dependencies:
"@babel/template" "^7.14.5"
"@babel/traverse" "^7.14.5"
Expand All @@ -283,7 +304,12 @@
chalk "^2.0.0"
js-tokens "^4.0.0"

"@babel/parser@^7.1.0", "@babel/parser@^7.12.0", "@babel/parser@^7.12.5", "@babel/parser@^7.13.9", "@babel/parser@^7.14.5", "@babel/parser@^7.7.2":
"@babel/parser@^7.1.0", "@babel/parser@^7.14.5", "@babel/parser@^7.14.6":
version "7.14.6"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.6.tgz#d85cc68ca3cac84eae384c06f032921f5227f4b2"
integrity sha512-oG0ej7efjEXxb4UgE+klVx+3j4MVo+A2vCzm7OUN4CLo6WhQ+vSOD2yJ8m7B+DghObxtLxt3EfgMWpq+AsWehQ==

"@babel/parser@^7.12.0", "@babel/parser@^7.12.5", "@babel/parser@^7.13.9", "@babel/parser@^7.7.2":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.5.tgz#4cd2f346261061b2518873ffecdf1612cb032829"
integrity sha512-TM8C+xtH/9n1qzX+JNHi7AN2zHMTiPUtspO0ZdHflW8KaskkALhMmuMHb4bCmNdv9VAPzJX3/bXqkVLnAvsPfg==
Expand Down Expand Up @@ -1165,12 +1191,12 @@
"@babel/preset-env" "^7.6.3"
"@babel/preset-typescript" "^7.13.0"
"@dword-design/functions" "^4.0.0"
"@vue/babel-preset-jsx" "github:dword-design/jsx#fork-babel-preset-jsx"
"@vue/babel-preset-jsx" dword-design/jsx#fork-babel-preset-jsx
babel-plugin-add-module-exports "^1.0.2"
babel-plugin-macros "^3.0.1"
babel-plugin-module-resolver "^4.0.0"
babel-plugin-transform-imports "^2.0.0"
babel-plugin-wildcard "github:dword-design/babel-plugin-wildcard#fork"
babel-plugin-wildcard dword-design/babel-plugin-wildcard#fork
depcheck-package-name "^2.0.0"
find-up "^5.0.0"
param-case "^3.0.3"
Expand Down Expand Up @@ -1305,7 +1331,7 @@
integrity sha512-pIUXdHeV5G4dKwTcAhJcz8hV3B+IxYUBCpoyeYVhTVjidoJ7zxNnpe7fuLQ+yprdzFHllLlnlhixtVLXZY/cGA==
dependencies:
delay "^5.0.0"
endent "github:dword-design/endent#fork"
endent dword-design/endent#fork
lodash "^4.17.15"
tinycolor2 "^1.4.1"

Expand Down Expand Up @@ -2503,9 +2529,8 @@
"@vue/babel-sugar-v-model" "^1.2.3"
"@vue/babel-sugar-v-on" "^1.2.3"

"@vue/babel-preset-jsx@github:dword-design/jsx#fork-babel-preset-jsx":
"@vue/babel-preset-jsx@dword-design/jsx#fork-babel-preset-jsx":
version "1.1.2"
uid a73cb9961541a60a66b1b99a69a32e00bc66d336
resolved "https://codeload.github.com/dword-design/jsx/tar.gz/a73cb9961541a60a66b1b99a69a32e00bc66d336"
dependencies:
"@vue/babel-helper-vue-jsx-merge-props" "^1.0.0"
Expand Down Expand Up @@ -2545,7 +2570,6 @@

"@vue/babel-sugar-inject-h@dword-design/jsx#fork-babel-sugar-inject-h":
version "1.1.2"
uid cc36a2200c059120f37944615fb2ec0e22f8f3cc
resolved "https://codeload.github.com/dword-design/jsx/tar.gz/cc36a2200c059120f37944615fb2ec0e22f8f3cc"
dependencies:
"@babel/plugin-syntax-jsx" "^7.2.0"
Expand Down Expand Up @@ -3204,8 +3228,7 @@ assign-symbols@^1.0.0:

ast-to-literal@dword-design/ast-to-literal#fork:
version "0.0.4"
uid "83614423d0ad5fd5d00d26dd436dc0938d28f871"
resolved "https://codeload.github.com/dword-design/ast-to-literal/tar.gz/83614423d0ad5fd5d00d26dd436dc0938d28f871"
resolved "https://codeload.github.com/dword-design/ast-to-literal/tar.gz/b60bc774738e88d4696b339a15e1824df618ed4a"
dependencies:
"@babel/types" "^7.13.0"
jest "^25.4.0"
Expand Down Expand Up @@ -3376,9 +3399,8 @@ babel-plugin-transform-imports@^2.0.0:
"@babel/types" "^7.4"
is-valid-path "^0.1.1"

"babel-plugin-wildcard@github:dword-design/babel-plugin-wildcard#fork":
babel-plugin-wildcard@dword-design/babel-plugin-wildcard#fork:
version "6.0.0"
uid "691d11923ee2dcf63e86f205b0a2c998883e3a3c"
resolved "https://codeload.github.com/dword-design/babel-plugin-wildcard/tar.gz/691d11923ee2dcf63e86f205b0a2c998883e3a3c"
dependencies:
rimraf "^2.6.2"
Expand Down Expand Up @@ -4953,7 +4975,6 @@ decode-uri-component@^0.2.0:

[email protected], dedent@dword-design/dedent#fork:
version "0.7.0"
uid c8d46e5017d60504657c2d01b59082c0329a12a7
resolved "https://codeload.github.com/dword-design/dedent/tar.gz/c8d46e5017d60504657c2d01b59082c0329a12a7"
dependencies:
babel-plugin-add-module-exports "^1.0.2"
Expand Down Expand Up @@ -5442,9 +5463,8 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0:
dependencies:
once "^1.4.0"

"endent@github:dword-design/endent#fork":
endent@dword-design/endent#fork:
version "1.4.0"
uid be5433db67eaec07c6c9d00ba3bed2ed946dc664
resolved "https://codeload.github.com/dword-design/endent/tar.gz/be5433db67eaec07c6c9d00ba3bed2ed946dc664"
dependencies:
dedent dword-design/dedent#fork
Expand Down

0 comments on commit 8536093

Please sign in to comment.