Skip to content

Commit

Permalink
chore(deps): update dependency devalue to v4 (2.x-dev) (#15880)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
  • Loading branch information
renovate[bot] and danielroe committed Feb 1, 2023
1 parent 1cedad5 commit ab83b1f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions jest.config.js
Expand Up @@ -41,12 +41,12 @@ module.exports = {
],

transformIgnorePatterns: [
'node_modules/(?!(@nuxt|nuxt))',
'node_modules/(?!(@nuxt|nuxt|devalue))',
'packages/utils/test/serialize\\.test\\.input\\.js'
],

transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.[cm]?[jt]sx?$': 'babel-jest',
'^.+\\.vue$': '@vue/vue2-jest'
},

Expand Down
2 changes: 1 addition & 1 deletion packages/generator/package.json
Expand Up @@ -12,7 +12,7 @@
"chalk": "^4.1.2",
"consola": "^2.15.3",
"defu": "^6.1.1",
"devalue": "^2.0.1",
"devalue": "^4.2.3",
"fs-extra": "^10.1.0",
"html-minifier": "^4.0.0",
"node-html-parser": "^5.4.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/generator/src/generator.js
@@ -1,7 +1,7 @@
import path from 'path'
import chalk from 'chalk'
import consola from 'consola'
import devalue from 'devalue'
import { uneval } from 'devalue'
import fsExtra from 'fs-extra'
import defu from 'defu'
import htmlMinifier from 'html-minifier'
Expand Down Expand Up @@ -64,7 +64,7 @@ export default class Generator {
await this.nuxt.callHook('generate:manifest', this.manifest, this)
const manifestPath = path.join(this.staticAssetsDir, 'manifest.js')
await fsExtra.ensureDir(this.staticAssetsDir)
await fsExtra.writeFile(manifestPath, `__NUXT_JSONP__("manifest.js", ${devalue(this.manifest)})`, 'utf-8')
await fsExtra.writeFile(manifestPath, `__NUXT_JSONP__("manifest.js", ${uneval(this.manifest)})`, 'utf-8')
consola.success('Static manifest generated')
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -5884,10 +5884,10 @@ detect-newline@3.1.0, detect-newline@^3.0.0:
resolved "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==

devalue@^2.0.1:
version "2.0.1"
resolved "https://registry.npmjs.org/devalue/-/devalue-2.0.1.tgz#5d368f9adc0928e47b77eea53ca60d2f346f9762"
integrity sha512-I2TiqT5iWBEyB8GRfTDP0hiLZ0YeDJZ+upDxjBfOC2lebO5LezQMv7QvIUTzdb64jQyAKLf1AHADtGN+jw6v8Q==
devalue@^4.2.3:
version "4.2.3"
resolved "https://registry.npmjs.org/devalue/-/devalue-4.2.3.tgz#313bb7e7cf74100bfddab9182b2d1b48ba14701a"
integrity sha512-JG6Q248aN0pgFL57e3zqTVeFraBe+5W2ugvv1mLXsJP6YYIYJhRZhAl7QP8haJrqob6X10F9NEkuCvNILZTPeQ==

devtools-protocol@0.0.1036444:
version "0.0.1036444"
Expand Down

0 comments on commit ab83b1f

Please sign in to comment.