@shopby/shop-sdk 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1 +1,29 @@
1
- # @shopby/shop-sdk
1
+ # Shopby-Shop-SDK for front API
2
+
3
+ ### @shopby/shop-sdk
4
+
5
+ - Typescript support
6
+ - based on the fetch API
7
+ - https://docs.shopby.co.kr/
8
+
9
+ ### How to use
10
+
11
+ ```shell script
12
+ npm install @shopby/shop-sdk
13
+ # or
14
+ yarn add @shopby/shop-sdk
15
+ ```
16
+
17
+ ```js
18
+ import { create } from '@shopby/shop-sdk';
19
+
20
+ const api = create('https://alpha-shop-api.e-ncp.com', 'ACCESS_TOKEN', {
21
+ clientId: '{your client id}',
22
+ 'Content-type': 'application/json'
23
+ });
24
+
25
+ const response = await api.admin.getMalls();
26
+ const data = await response.json();
27
+
28
+ console.log(data);
29
+ ```
@@ -294,3 +294,4 @@ export interface CreatedOutput {
294
294
  postCouponsCouponNoDownload(request: any): Promise<ResponseData<any>>;
295
295
  };
296
296
  }
297
+ export * from './admin';
@@ -1,2 +1,2 @@
1
- export {};
1
+ export * from './admin';
2
2
  //# sourceMappingURL=root.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"root.js","sourceRoot":"","sources":["../../types/root.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"root.js","sourceRoot":"","sources":["../../types/root.ts"],"names":[],"mappings":"AAmdA,cAAc,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@shopby/shop-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/types/root.d.ts",
7
7
  "files": [
8
- "build/src",
8
+ "build",
9
9
  "build/types"
10
10
  ],
11
11
  "scripts": {
@@ -13,24 +13,34 @@
13
13
  "clean": "gts clean",
14
14
  "compile": "tsc",
15
15
  "fix": "gts fix",
16
- "prepare": "npm run compile",
16
+ "prepare": "husky install",
17
17
  "pretest": "npm run compile",
18
18
  "posttest": "npm run lint",
19
- "upload": "npm version patch & npm publish --access public"
19
+ "upload": "npm publish --access public",
20
+ "release": "standard-version"
20
21
  },
21
22
  "repository": {
22
23
  "type": "git",
23
24
  "url": "http://gitlab.e-ncp.com/ncp-client/shop-sdk.git"
24
25
  },
25
- "author": "",
26
+ "author": "nhn-commerce",
26
27
  "license": "ISC",
27
28
  "dependencies": {
28
29
  "lodash.curry": "^4.1.1"
29
30
  },
30
31
  "devDependencies": {
32
+ "@commitlint/cli": "15.0.0",
33
+ "@commitlint/config-conventional": "15.0.0",
31
34
  "@types/lodash.curry": "^4.1.6",
32
35
  "@types/node": "^16.11.10",
33
36
  "gts": "^3.1.0",
37
+ "husky": "7.0.4",
38
+ "standard-version": "9.3.2",
34
39
  "typescript": "^4.5.2"
40
+ },
41
+ "husky": {
42
+ "hooks": {
43
+ "commit-msg": "echo -E HUSKY_GIT_PARAMS"
44
+ }
35
45
  }
36
46
  }