Socket
Socket
Sign inDemoInstall

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.2.0 to 2.2.1

14

lib/loader.js

@@ -17,7 +17,7 @@ "use strict";

const environmentRegExp = new RegExp(`^__((?:(?:${envVariables.join('|')})))__(.*)`);
var ENV_KEYS;
(function (ENV_KEYS) {
ENV_KEYS["DEV"] = "dev";
ENV_KEYS["PROD"] = "prod";
})(ENV_KEYS || (ENV_KEYS = {}));
var ENVKeys;
(function (ENVKeys) {
ENVKeys["DEV"] = "dev";
ENVKeys["PROD"] = "prod";
})(ENVKeys || (ENVKeys = {}));
const schema = {

@@ -51,4 +51,4 @@ type: 'object',

const envKey = envMatch[1];
if ((!isProd && envKey === ENV_KEYS.DEV) ||
(isProd && envKey === ENV_KEYS.PROD)) {
if ((!isProd && envKey === ENVKeys.DEV) ||
(isProd && envKey === ENVKeys.PROD)) {
newManifest[envMatch[2]] = value;

@@ -55,0 +55,0 @@ }

{
"name": "wext-manifest-loader",
"version": "2.2.0",
"version": "2.2.1",
"description": "Webpack loader that lets you specify `manifest.json` properties to appear only in specific browsers.",

@@ -44,3 +44,4 @@ "license": "MIT",

"devDependencies": {
"@abhijithvijayan/eslint-config": "^1.4.1",
"@abhijithvijayan/eslint-config": "2.5.3",
"@abhijithvijayan/eslint-config-airbnb": "^1.0.2",
"@abhijithvijayan/tsconfig": "^1.2.0",

@@ -52,3 +53,3 @@ "@types/loader-utils": "^2.0.1",

"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint": "^7.3.1",
"eslint-config-airbnb": "^18.2.0",

@@ -58,2 +59,3 @@ "eslint-config-prettier": "^6.11.0",

"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",

@@ -60,0 +62,0 @@ "eslint-plugin-react": "^7.20.3",

@@ -1,9 +0,23 @@

# wext-manifest-loader [![npm version](https://img.shields.io/npm/v/wext-manifest-loader)](https://www.npmjs.com/package/wext-manifest-loader)
> Webpack Loader for Webextension manifest
Generate browser tailored `manifest.json` for Web Extensions that you specify properties to appear only in specific browsers.
<h3>🙋‍♂️ Made by <a href="https://twitter.com/_abhijithv">@abhijithvijayan</a></h3>
<p>
<h1 align="center">wext-manifest-loader</h1>
<p align="center">Webpack Loader for Webextension manifest</p>
<div align="center">
<a href="https://www.npmjs.com/package/wext-manifest-loader">
<img src="https://img.shields.io/npm/v/wext-manifest-loader" alt="NPM" />
</a>
<a href="https://travis-ci.com/abhijithvijayan/wext-manifest-loader">
<img src="https://travis-ci.com/abhijithvijayan/wext-manifest-loader.svg?branch=main" alt="Travis Build" />
</a>
</a>
<a href="https://david-dm.org/abhijithvijayan/wext-manifest-loader">
<img src="https://img.shields.io/david/abhijithvijayan/wext-manifest-loader.svg?colorB=orange" alt="DEPENDENCIES" />
</a>
<a href="https://github.com/abhijithvijayan/wext-manifest-loader/blob/main/license">
<img src="https://img.shields.io/github/license/abhijithvijayan/wext-manifest-loader.svg" alt="LICENSE" />
</a>
<a href="https://twitter.com/intent/tweet?text=Check%20out%20wext-manifest-loader%21%20by%20%40_abhijithv%0A%0AWebpack%20Loader%20for%20Webextension%20manifest%0Ahttps%3A%2F%2Fgithub.com%2Fabhijithvijayan%2Fwext-manifest-loader%0A%0A%23webpack%20%23loader%20%23manifest%20%23javascript%20%23webextensions">
<img src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social" alt="TWEET" />
</a>
</div>
<h3 align="center">🙋‍♂️ Made by <a href="https://twitter.com/_abhijithv">@abhijithvijayan</a></h3>
<p align="center">
Donate:

@@ -13,3 +27,3 @@ <a href="https://www.paypal.me/iamabhijithvijayan" target='_blank'><i><b>PayPal</b></i></a>,

</p>
<p>
<p align="center">
<a href='https://www.buymeacoffee.com/abhijithvijayan' target='_blank'>

@@ -21,2 +35,16 @@ <img height='36' style='border:0px;height:36px;' src='https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png' border='0' alt='Buy Me a Coffee' />

Generate browser tailored `manifest.json` for Web Extensions that you specify properties to appear only in specific browsers.
❤️ it? ⭐️ it on [GitHub](https://github.com/abhijithvijayan/wext-manifest-loader/stargazers) or [Tweet](https://twitter.com/intent/tweet?text=Check%20out%20wext-manifest-loader%21%20by%20%40_abhijithv%0A%0AWebpack%20Loader%20for%20Webextension%20manifest%0Ahttps%3A%2F%2Fgithub.com%2Fabhijithvijayan%2Fwext-manifest-loader%0A%0A%23webpack%20%23loader%20%23manifest%20%23javascript%20%23webextensions) about it.
## Table of Contents
- [Browser Support](#browser-support)
- [Installation](#installation)
- [Usage](#usage)
- [FAQs](#faqs)
- [Issues](#issues)
- [🐛 Bugs](#-bugs)
- [LICENSE](#license)
## Browser Support

@@ -36,2 +64,4 @@

Ensure you have [Node.js](https://nodejs.org) 10 or later installed. Then run the following:
```sh

@@ -192,2 +222,18 @@ # via npm

## Issues
_Looking to contribute? Look for the [Good First Issue](https://github.com/abhijithvijayan/wext-manifest-loader/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22)
label._
### 🐛 Bugs
Please file an issue [here](https://github.com/abhijithvijayan/wext-manifest-loader/issues/new) for bugs, missing documentation, or unexpected behavior.
[**See Bugs**](https://github.com/abhijithvijayan/wext-manifest-loader/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3A+bug%22)
### Linting & TypeScript Config
- Shared Eslint & Prettier Configuration - [`@abhijithvijayan/eslint-config`](https://www.npmjs.com/package/@abhijithvijayan/eslint-config)
- Shared TypeScript Configuration - [`@abhijithvijayan/tsconfig`](https://www.npmjs.com/package/@abhijithvijayan/tsconfig)
## Credits

@@ -197,8 +243,4 @@

## Show your support
Give a ⭐️ if this project helped you!
## License
MIT © [Abhijith Vijayan](https://abhijithvijayan.in)

Sorry, the diff of this file is not supported yet

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