File: fix-for-schema-utils-3.diff

package info (click to toggle)
node-yarnpkg 1.22.19%2B~cs24.27.18-2%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 94,132 kB
  • sloc: javascript: 42,973; sh: 335; makefile: 21
file content (14 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: fix for schema-utils ≥ 3
Author: Xavier Guimard <yadd@debian.org>
Forwarded: no
Last-Update: 2020-11-18

--- a/string-replace-loader/lib/getOptionsArray.js
+++ b/string-replace-loader/lib/getOptionsArray.js
@@ -1,5 +1,5 @@
 const { getOptions } = require('loader-utils')
-const validateOptions = require('schema-utils')
+const validateOptions = require('schema-utils').validate
 
 const loaderName = 'string-replace-loader'