Skip to content

Commit 8700c36

Browse files
committed
fix(pet-shop): mini-program support
1 parent 201cf6a commit 8700c36

File tree

4 files changed

+263
-712
lines changed

4 files changed

+263
-712
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@
2424
"packages/*"
2525
],
2626
"devDependencies": {
27-
"@nice-move/cli": "^0.5.33",
28-
"@nice-move/commitlint-config": "^0.3.0",
29-
"@nice-move/eslint-config-base": "^0.5.67",
27+
"@nice-move/cli": "^0.6.0",
28+
"@nice-move/commitlint-config": "^0.4.0",
29+
"@nice-move/eslint-config-base": "^0.5.69",
3030
"@nice-move/prettier-config": "^0.5.1",
3131
"ava": "^3.15.0",
32-
"commitlint": "^14.1.0",
32+
"commitlint": "^15.0.0",
3333
"eslint": "^7.32.0",
3434
"eslint-plugin-ava": "^13.1.0",
35-
"garou": "^0.2.5",
35+
"garou": "^0.2.7",
3636
"node-storage-shim": "^2.0.1",
3737
"prettier": "^2.4.1"
3838
},
3939
"engines": {
40-
"node": "^12.22.0 || ^14.17.0 || ^16.13.0"
40+
"node": "^12.22.0 || ^14.17.0 || >=16.13.0"
4141
},
4242
"commitlint": {
4343
"extends": "@nice-move/commitlint-config"

packages/pet-shop/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
function safeParse(string) {
44
try {
55
return JSON.parse(string);
6-
} catch {
7-
8-
}
6+
// eslint-disable-next-line unicorn/prefer-optional-catch-binding
7+
} catch (error) {}
98
}
109

1110
export function PetShop({ storage, namespace, json = false }) {

packages/pet-shop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pet-shop",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "A simple wrapper of Web Storage API",
55
"license": "MIT",
66
"author": {

0 commit comments

Comments
 (0)