Skip to content

Commit

Permalink
chore: bump deps\n
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgv committed Oct 9, 2022
1 parent 528cecc commit 2252929
Show file tree
Hide file tree
Showing 12 changed files with 451 additions and 451 deletions.
6 changes: 3 additions & 3 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Contact: [email protected]
Expires: 2100-01-01T00:00:00.000Z
Acknowledgments: https://www.plasmo.com/security/hall-of-fame
Contact: [email protected]
Expires: 2100-01-01T00:00:00.000Z
Acknowledgments: https://www.plasmo.com/security/hall-of-fame
58 changes: 29 additions & 29 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: "test"
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- "releases/*"

jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: latest
- name: Use Node.js 16.x
uses: actions/[email protected]
with:
node-version: 16.x
- run: pnpm i
- run: pnpm clean
- run: pnpm build
- run: pnpm dlx @plasmohq/mystic-box test-zip 0.0.8
- uses: PlasmoHQ/soft-secret@v1
with:
secret: ${{ secrets.TEST_KEY }}
target: "key.json"
- run: pnpm test
name: "test"
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- "releases/*"

jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: latest
- name: Use Node.js 16.x
uses: actions/[email protected]
with:
node-version: 16.x
- run: pnpm i
- run: pnpm clean
- run: pnpm build
- run: pnpm dlx @plasmohq/mystic-box test-zip 0.0.8
- uses: PlasmoHQ/soft-secret@v1
with:
secret: ${{ secrets.TEST_KEY }}
target: "key.json"
- run: pnpm test
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.turbo/
node_modules
key.json
test.zip
.turbo/
node_modules
key.json
test.zip
dist/
34 changes: 17 additions & 17 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/**
* @type {import('prettier').Options}
*/
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: false,
trailingComma: "none",
bracketSpacing: true,
bracketSameLine: true,
plugins: [require.resolve("@plasmohq/prettier-plugin-sort-imports")],
importOrder: ["^~(.*)$", "^[./]"],
importOrderSeparation: true,
importOrderSortSpecifiers: true
}
/**
* @type {import('prettier').Options}
*/
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: false,
trailingComma: "none",
bracketSpacing: true,
bracketSameLine: true,
plugins: [require.resolve("@plasmohq/prettier-plugin-sort-imports")],
importOrder: ["^~(.*)$", "^[./]"],
importOrderSeparation: true,
importOrderSortSpecifiers: true
}
42 changes: 21 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2022 Plasmo Corp. <[email protected]> (https://www.plasmo.com) and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
The MIT License (MIT)
Copyright (c) 2022 Plasmo Corp. <[email protected]> (https://www.plasmo.com) and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
148 changes: 74 additions & 74 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
<p align="center">
<a href="https://plasmo.com">
<img alt="plasmo logo banner" width="75%" src="https://www.plasmo.com/assets/banner-black-on-white.png" />
</a>
</p>

<p align="center">
<a aria-label="License" href="./LICENSE">
<img alt="See License" src="https://img.shields.io/npm/l/@plasmohq/edge-addons-api"/>
</a>
<a aria-label="NPM" href="https://www.npmjs.com/package/@plasmohq/edge-addons-api">
<img alt="NPM Install" src="https://img.shields.io/npm/v/@plasmohq/edge-addons-api?logo=npm"/>
</a>
<a aria-label="Twitter" href="https://www.twitter.com/plasmohq">
<img alt="Follow PlasmoHQ on Twitter" src="https://img.shields.io/twitter/follow/plasmohq?logo=twitter"/>
</a>
<a aria-label="Twitch Stream" href="https://www.twitch.tv/plasmohq">
<img alt="Watch our Live DEMO every Friday" src="https://img.shields.io/twitch/status/plasmohq?logo=twitch&logoColor=white"/>
</a>
<a aria-label="Discord" href="https://www.plasmo.com/s/d">
<img alt="Join our Discord for support and chat about our projects" src="https://img.shields.io/discord/946290204443025438?logo=discord&logoColor=white"/>
</a>
<a aria-label="Build status" href="https://github.com/PlasmoHQ/bpp/actions">
<img alt="typescript-action status" src="https://github.com/PlasmoHQ/bpp/workflows/build-test/badge.svg"/>
</a>
</p>

# Microsoft Edge Addons API for NodeJS

A tiny but powerful module from [plasmo](https://www.plasmo.com/) to publish browser add-ons to the [Microsoft Edge Web Store](https://microsoftedge.microsoft.com/addons/Microsoft-Edge-Extensions-Home).

This module uses [got](https://github.com/sindresorhus/got) to upload, check status, and submit an extension to the Microsoft Edge Webstore, using the [Microsoft Edge Add-ons API](https://docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/publish/api/using-addons-api).

Features include:

- TypeScript API
- ESM (if you need cjs, please file an issue)
- Pinned dependencies, updated via renovatebot

## Installation

```
npm install --save-dev @plasmohq/edge-addons-api
```

## Usage

### Authentication

You'll need to get a `productId`, `clientId`, `clientSecret`, and `accessTokenUrl` for your project.

You can get these for your project by following the [Microsoft Edge Add-Ons API guide](https://docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/publish/api/using-addons-api).

### Node.js API

```ts
import { EdgeAddonsAPI } from "@plasmohq/edge-addons-api"

const client = new EdgeAddonsAPI({
productId,
clientId,
clientSecret,
accessTokenUrl
})

await client.submit({
filePath: "./dist/my-extension.zip",
notes: "Developer notes"
})
```

## License

[MIT](./license) 🖖 [Plasmo](https://www.plasmo.com)
<p align="center">
<a href="https://plasmo.com">
<img alt="plasmo logo banner" width="75%" src="https://www.plasmo.com/assets/banner-black-on-white.png" />
</a>
</p>

<p align="center">
<a aria-label="License" href="./LICENSE">
<img alt="See License" src="https://img.shields.io/npm/l/@plasmohq/edge-addons-api"/>
</a>
<a aria-label="NPM" href="https://www.npmjs.com/package/@plasmohq/edge-addons-api">
<img alt="NPM Install" src="https://img.shields.io/npm/v/@plasmohq/edge-addons-api?logo=npm"/>
</a>
<a aria-label="Twitter" href="https://www.twitter.com/plasmohq">
<img alt="Follow PlasmoHQ on Twitter" src="https://img.shields.io/twitter/follow/plasmohq?logo=twitter"/>
</a>
<a aria-label="Twitch Stream" href="https://www.twitch.tv/plasmohq">
<img alt="Watch our Live DEMO every Friday" src="https://img.shields.io/twitch/status/plasmohq?logo=twitch&logoColor=white"/>
</a>
<a aria-label="Discord" href="https://www.plasmo.com/s/d">
<img alt="Join our Discord for support and chat about our projects" src="https://img.shields.io/discord/946290204443025438?logo=discord&logoColor=white"/>
</a>
<a aria-label="Build status" href="https://github.com/PlasmoHQ/bpp/actions">
<img alt="typescript-action status" src="https://github.com/PlasmoHQ/bpp/workflows/build-test/badge.svg"/>
</a>
</p>

# Microsoft Edge Addons API for NodeJS

A tiny but powerful module from [plasmo](https://www.plasmo.com/) to publish browser add-ons to the [Microsoft Edge Web Store](https://microsoftedge.microsoft.com/addons/Microsoft-Edge-Extensions-Home).

This module uses [got](https://github.com/sindresorhus/got) to upload, check status, and submit an extension to the Microsoft Edge Webstore, using the [Microsoft Edge Add-ons API](https://docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/publish/api/using-addons-api).

Features include:

- TypeScript API
- ESM (if you need cjs, please file an issue)
- Pinned dependencies, updated via renovatebot

## Installation

```
npm install --save-dev @plasmohq/edge-addons-api
```

## Usage

### Authentication

You'll need to get a `productId`, `clientId`, `clientSecret`, and `accessTokenUrl` for your project.

You can get these for your project by following the [Microsoft Edge Add-Ons API guide](https://docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/publish/api/using-addons-api).

### Node.js API

```ts
import { EdgeAddonsAPI } from "@plasmohq/edge-addons-api"

const client = new EdgeAddonsAPI({
productId,
clientId,
clientSecret,
accessTokenUrl
})

await client.submit({
filePath: "./dist/my-extension.zip",
notes: "Developer notes"
})
```

## License

[MIT](./license) 🖖 [Plasmo](https://www.plasmo.com)
54 changes: 27 additions & 27 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
/**
* @type {import('@jest/types').Config.InitialOptions}
*/

const config = {
testTimeout: 60000 * 5, // Test can run for 5 minutes

clearMocks: true,
moduleFileExtensions: ["js", "ts"],
extensionsToTreatAsEsm: [".ts"],
transform: {
"^.+\\.ts$": [
"ts-jest",
{
useESM: true
}
]
},
testMatch: ["**/*.test.ts"],
verbose: true,
moduleNameMapper: {
"^~(.*)$": "<rootDir>/src/$1",
"^(\\.{1,2}/.*)\\.js$": "$1"
},
modulePaths: ["<rootDir>"]
}
export default config
/**
* @type {import('@jest/types').Config.InitialOptions}
*/

const config = {
testTimeout: 60000 * 5, // Test can run for 5 minutes

clearMocks: true,
moduleFileExtensions: ["js", "ts"],
extensionsToTreatAsEsm: [".ts"],
transform: {
"^.+\\.ts$": [
"ts-jest",
{
useESM: true
}
]
},
testMatch: ["**/*.test.ts"],
verbose: true,
moduleNameMapper: {
"^~(.*)$": "<rootDir>/src/$1",
"^(\\.{1,2}/.*)\\.js$": "$1"
},
modulePaths: ["<rootDir>"]
}
export default config
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
"got": "12.5.1"
},
"devDependencies": {
"@jest/globals": "29.1.1",
"@plasmohq/prettier-plugin-sort-imports": "3.5.2",
"@plasmohq/rps": "1.5.2",
"@types/node": "18.7.23",
"@jest/globals": "29.1.2",
"@plasmohq/prettier-plugin-sort-imports": "3.5.4",
"@plasmohq/rps": "1.5.3",
"@types/node": "18.8.3",
"cross-env": "7.0.3",
"jest": "29.1.1",
"jest": "29.1.2",
"prettier": "2.7.1",
"ts-jest": "29.0.2",
"ts-jest": "29.0.3",
"tsup": "6.2.3",
"typescript": "4.8.4"
}
Expand Down
Loading

0 comments on commit 2252929

Please sign in to comment.