npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

webext-store-incompat-fixer

v0.8.2

Published

Package which clones a packed webextension and fixes incompatibilities with certain extension stores

Downloads

152

Readme

webext-store-incompat-fixer

Package which clones a packed webextension and fixes incompatibilities with certain extension stores.

usage

webext-store-incompat-fixer --input somepackage.zip --stores edge,whale,firefox

or const webextStoreIncompatFixer = require('webext-store-incompat-fixer'); webextStoreIncompatFixer({ 'inputPath': 'some-package.zip', 'stores': ['edge', 'whale', 'firefox'] }).then(function () { console.log('finished'); })

Keep in mind it will only create separate packages if and only if adaptions are needed.

background

The idea behind this package is to allow one to keep one code base for all stores. This package doesn't cover all incompatibilities. If one is missing, feel free to open an issue.

The adaptions are mostly needed because of issues in the store. This means once those are fixed, adaptions in this package will be removed as well.

Google Chrome adaptions

The manifest.name and manifest.short_name will be reduced to 45 characters if longer than 45 characters.

Mozilla Firefox adaptions

The manifest.name and manifest.short_name will be reduced to 45 characters if longer than 45 characters.

Microsoft Edge adaptions (Chromium-based)

The microsoft edge store currently requires store descriptions for each language. Say you support 50 languages, you will have to create descriptions for each language in the store.

To overcome this, we make use of the language detection system of the edge store. It will only ask for additional assets if there is a translation for items found in the manifest file. Thus we remove those translations and keep others.

To force include a certain language, use the --edge-locale-inclusions option with a comma separated list of locales.

Microsoft confirmed this issue will be fixed at some point. Once they have, this adaption will be removed.

Naver Whale adaptions

The whale store currently doesn't handle some characters. For now we remove the ™ symbol. Open an issue if there are more characters we should handle. Bug report: https://forum.whale.naver.com/topic/39748/

In addition, the whale store doesn't accept all language codes. Specifically, it requires language suffix to be a country code, which doesn't work for zh_Hans and zh_Hant. Those language files are moved to zh_CN and zh_TW if not found. Else it will remove the directories. Bug report: https://forum.whale.naver.com/topic/39749/

The Whale team mentioned they won't fix the language issue however they are currently looking into the character issue.

See also: https://forum.whale.naver.com/topic/27841/

Apple Safari adaptions

The sandbox directive is removed from the content_security_policy field.