Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wext-manifest-loader

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wext-manifest-loader - npm Package Compare versions

Comparing version 2.4.1 to 3.0.0

7

lib/cjs/loader.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc