Coder Social home page Coder Social logo

awesome-webextension / webextension-store-meta Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 8.0 200 KB

Get browser extension(webextension) item meta from Chrome Web Store and Firefox add-ons.

License: MIT License

JavaScript 0.56% TypeScript 99.44%
add-on addon amo chrome chrome-app chrome-extension chrome-theme chrome-web-store extension firefox firefox-addons itemprop meta web-store webextension webstore

webextension-store-meta's People

Contributors

chris48s avatar crimx avatar xmcp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

webextension-store-meta's Issues

feature request: typescript support

I added ES-module support for typescript support. It's outdated, but it worked, but I don't really know what I'm doing, so I didn't feel confident to open a PR, here's the code: https://github.com/cachho/webextension-store-meta

Now, with the breaking changes, I know that from my last attempt that I rather not do it again, so with this issue I'm asking if anyone could at typescript support. Thank you.

Broken with domutils v2

Hi there ๐Ÿ‘‹ We've run into an issue with this package in Shields.io because after updating some other dependencies in our tree (refs badges/shields#6611) domutils is now getting resolved to v2. domutils is an indirect dependency in our tree, and from what I can tell a direct, but undeclared, dependency here in webextension-store-meta.

Error snippet included below for reference, let me know if you have any questions or need any more information!

Error: Cannot find module 'domutils/lib/tagtypes'
Require stack:
- /home/circleci/project/node_modules/webextension-store-meta/lib/dom.js
- /home/circleci/project/node_modules/webextension-store-meta/lib/chrome-web-store/index.js
- /home/circleci/project/services/chrome-web-store/chrome-web-store-base.js
- /home/circleci/project/services/chrome-web-store/chrome-web-store-price.service.js
- /home/circleci/project/core/base-service/loader.js
- /home/circleci/project/core/base-service/loader.spec.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (node_modules/webextension-store-meta/lib/dom.js:1:36)
    ```

FetchError: maximum redirect reached

Hello.

Recently all our calls via this lib are failing with FetchError: maximum redirect reached

Example failing code:

import ChromeWebStore from 'webextension-store-meta/lib/chrome-web-store/index.js'

await ChromeWebStore.load({ id: 'iocghaljaochhkgajdilelogdkejkiil' })

Downstreams are broken due to changed API behavior

ref: badges/shields#10094

Currently shields.io use this library like this:

import ChromeWebStore from 'webextension-store-meta/lib/chrome-web-store/index.js'
...
async fetch({ storeId }) {
    return await ChromeWebStore.load({ id: storeId })
    ...
}

However, console.log(ChromeWebStore) for v1.2.1 now gives us:

{
  ChromeWebStore: [class ChromeWebStore],
  default: [class ChromeWebStore]
}

Therefore it crashes with TypeError: ChromeWebStore.load is not a function.

badgen uses this library in a similar manner, which would also crash (but I haven't tested).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.