wext-manifest-loader
Advanced tools
Comparing version 2.4.1 to 3.0.0
@@ -9,3 +9,3 @@ "use strict"; | ||
const path_1 = __importDefault(require("path")); | ||
const schema_utils_1 = __importDefault(require("schema-utils")); | ||
const schema_utils_1 = require("schema-utils"); | ||
const loader_utils_1 = require("loader-utils"); | ||
@@ -22,2 +22,3 @@ const constants_1 = require("./constants"); | ||
}, | ||
additionalProperties: false | ||
}; | ||
@@ -29,4 +30,4 @@ function loader(source) { | ||
this.addDependency(packageJSONPath); | ||
const options = (0, loader_utils_1.getOptions)(this); | ||
(0, schema_utils_1.default)(schema, options, { | ||
const options = this.getOptions(); | ||
(0, schema_utils_1.validate)(schema, options, { | ||
name: 'Wext Manifest Loader', | ||
@@ -33,0 +34,0 @@ }); |
import fs from 'fs'; | ||
import path from 'path'; | ||
import validateOptions from 'schema-utils'; | ||
import { getOptions, interpolateName } from 'loader-utils'; | ||
import { validate } from 'schema-utils'; | ||
import { interpolateName } from 'loader-utils'; | ||
import { browserVendors, LOADER_NAME } from './constants'; | ||
@@ -15,2 +15,3 @@ import { transformManifest } from './transform'; | ||
}, | ||
additionalProperties: false | ||
}; | ||
@@ -22,4 +23,4 @@ export function loader(source) { | ||
this.addDependency(packageJSONPath); | ||
const options = getOptions(this); | ||
validateOptions(schema, options, { | ||
const options = this.getOptions(); | ||
validate(schema, options, { | ||
name: 'Wext Manifest Loader', | ||
@@ -26,0 +27,0 @@ }); |
{ | ||
"name": "wext-manifest-loader", | ||
"version": "2.4.1", | ||
"version": "3.0.0", | ||
"description": "Webpack loader that lets you specify `manifest.json` properties to appear only in specific browsers.", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=10.0.0" | ||
"node": ">=16.15.0" | ||
}, | ||
@@ -23,3 +23,4 @@ "main": "lib/cjs/index.js", | ||
"scripts": { | ||
"watch": "tsc --module esnext --outDir lib/esm --watch", | ||
"watch:cjs": "tsc --module commonjs --outDir lib/cjs --watch", | ||
"watch:esm": "tsc --module esnext --outDir lib/esm --watch", | ||
"build:cjs": "tsc --module commonjs --outDir lib/cjs", | ||
@@ -57,4 +58,4 @@ "build:esm": "tsc --module esnext --outDir lib/esm", | ||
"dependencies": { | ||
"loader-utils": "^2.0.0", | ||
"schema-utils": "^2.7.1" | ||
"loader-utils": "^3.2.0", | ||
"schema-utils": "^4.0.0" | ||
}, | ||
@@ -61,0 +62,0 @@ "devDependencies": { |
@@ -62,3 +62,3 @@ <h1 align="center">wext-manifest-loader</h1> | ||
Ensure you have [Node.js](https://nodejs.org) 10 or later installed. Then run the following: | ||
Ensure you have [Node.js](https://nodejs.org) 16 or later installed. Then run the following: | ||
@@ -65,0 +65,0 @@ ```sh |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23194
296
+ Addedajv@8.17.1(transitive)
+ Addedajv-formats@2.1.1(transitive)
+ Addedajv-keywords@5.1.0(transitive)
+ Addedfast-uri@3.0.3(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedloader-utils@3.3.1(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addedschema-utils@4.2.0(transitive)
- Removedajv@6.12.6(transitive)
- Removedajv-keywords@3.5.2(transitive)
- Removedbig.js@5.2.2(transitive)
- Removedemojis-list@3.0.0(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson5@2.2.3(transitive)
- Removedloader-utils@2.0.4(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedschema-utils@2.7.1(transitive)
- Removeduri-js@4.4.1(transitive)
Updatedloader-utils@^3.2.0
Updatedschema-utils@^4.0.0