Skip to content

Commit 3fdc93f

Browse files
committed
v1.0.0 - migrate to plasmohq
1 parent 5cd53bf commit 3fdc93f

File tree

6 files changed

+48
-21
lines changed

6 files changed

+48
-21
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- run: pnpm i
3030
- run: pnpm clean
3131
- run: pnpm build
32-
- run: pnpm dlx @plasmo-corp/mystic-box test-zip 0.0.8
32+
- run: pnpm dlx @plasmohq/mystic-box test-zip 0.0.8
3333
- uses: PlasmoHQ/soft-secret@v1
3434
with:
3535
secret: ${{ secrets.TEST_KEY }}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@plasmohq/ewu",
3-
"version": "0.6.0",
2+
"name": "@plasmohq/edge-addons-api",
3+
"version": "1.0.0",
44
"description": "Microsoft Edge Addons API for Node.js",
55
"exports": "./dist/index.js",
66
"types": "./dist/index.d.ts",
@@ -21,7 +21,7 @@
2121
"author": "Plasmo Corp. <[email protected]>",
2222
"repository": {
2323
"type": "git",
24-
"url": "https://github.com/plasmohq/edge-webstore-upload.git"
24+
"url": "https://github.com/PlasmoHQ/edge-addons-api.git"
2525
},
2626
"license": "MIT",
2727
"keywords": [
@@ -35,7 +35,7 @@
3535
},
3636
"devDependencies": {
3737
"@jest/globals": "28.1.0",
38-
"@plasmohq/rps": "1.3.1",
38+
"@plasmohq/rps": "1.3.3",
3939
"@trivago/prettier-plugin-sort-imports": "3.2.0",
4040
"@types/node": "17.0.34",
4141
"cross-env": "7.0.3",

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
<p align="center">
2+
<a href="https://plasmo.com">
3+
<img alt="plasmo logo banner" width="75%" src="https://www.plasmo.com/assets/banner-black-on-white.png" />
4+
</a>
5+
</p>
6+
7+
<p align="center">
8+
<a aria-label="License" href="./license">
9+
<img alt="See License" src="https://img.shields.io/npm/l/@plasmohq/edge-addons-api"/>
10+
</a>
11+
<a aria-label="NPM" href="https://www.npmjs.com/package/@plasmohq/edge-addons-api">
12+
<img alt="NPM Install" src="https://img.shields.io/npm/v/@plasmohq/edge-addons-api?logo=npm"/>
13+
</a>
14+
<a aria-label="Twitter" href="https://www.twitter.com/plasmohq">
15+
<img alt="Follow PlasmoHQ on Twitter" src="https://img.shields.io/twitter/follow/plasmohq?logo=twitter"/>
16+
</a>
17+
<a aria-label="Twitch Stream" href="https://www.twitch.tv/plasmohq">
18+
<img alt="Watch our Live DEMO every Friday" src="https://img.shields.io/twitch/status/plasmohq?logo=twitch&logoColor=white"/>
19+
</a>
20+
<a aria-label="Discord" href="https://www.plasmo.com/s/d">
21+
<img alt="Join our Discord for support and chat about our projects" src="https://img.shields.io/discord/904466750429609984?logo=discord&logoColor=white"/>
22+
</a>
23+
<a aria-label="Build status" href="https://github.com/PlasmoHQ/bpp/actions">
24+
<img alt="typescript-action status" src="https://github.com/PlasmoHQ/bpp/workflows/build-test/badge.svg"/>
25+
</a>
26+
</p>
27+
128
# Microsoft Edge Addons API for NodeJS
229

330
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).
@@ -13,7 +40,7 @@ Features include:
1340
## Installation
1441

1542
```
16-
npm install --save-dev @plasmo-corp/ewu
43+
npm install --save-dev @plasmohq/edge-addons-api
1744
```
1845

1946
## Usage
@@ -27,9 +54,9 @@ You can get these for your project by following the [Microsoft Edge Add-Ons API
2754
### Node.js API
2855

2956
```ts
30-
import { EdgeWebstoreClient } from "@plasmo-corp/ewu"
57+
import { EdgeAddonsAPI } from "@plasmohq/edge-addons-api"
3158

32-
const client = new EdgeWebstoreClient({
59+
const client = new EdgeAddonsAPI({
3360
productId,
3461
clientId,
3562
clientSecret,

src/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { expect, test } from "@jest/globals"
22
import { readFile } from "fs/promises"
33

4-
import { EdgeWebstoreClient, Options } from "~index"
4+
import { EdgeAddonsAPI, Options } from "~index"
55

66
test("test upload test.zip artifact", async () => {
77
const key = JSON.parse(await readFile("key.json", "utf8")) as Options
88

9-
const client = new EdgeWebstoreClient(key)
9+
const client = new EdgeAddonsAPI(key)
1010
const resp = await client.submit({
1111
filePath: "test.zip",
1212
notes: "Test upload test.zip artifact"

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const requiredFields = Object.keys(errorMap) as Array<
5454
const wait = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms))
5555

5656
const baseApiUrl = "https://api.addons.microsoftedge.microsoft.com"
57-
export class EdgeWebstoreClient {
57+
export class EdgeAddonsAPI {
5858
options = {} as Options
5959

6060
constructor(options: Options) {

0 commit comments

Comments
 (0)