chore(deps): update dependency devalue to v4 (2.x-dev) (#15880)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
renovate[bot] 2023-02-01 05:41:09 -08:00 committed by GitHub
parent 1cedad5fcf
commit ab83b1f31d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View File

@ -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'
},

View File

@ -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",

View File

@ -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'
@ -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')
}

View File

@ -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"