line-ts 1.0.1 → 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/dist/index.cjs CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  /**
6
4
  * Generates a non-safe random string which can have duplicates around 7 million generations.
7
5
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * https://developers.line.biz/en/docs/line-login/integrate-line-login/#making-an-authorization-request
3
3
  */
4
- export declare type LineLoginUrlParams = {
4
+ export type LineLoginUrlParams = {
5
5
  /**
6
6
  * (Optional - default 'code') code. This tells the LINE Platform to return an authorization code.
7
7
  */
@@ -1,4 +1,4 @@
1
- export declare type LoginCallbackParamsSuccess = {
1
+ export type LoginCallbackParamsSuccess = {
2
2
  /**
3
3
  * Authorization code used to get an access token. Valid for 10 minutes. This authorization code can only be used once.
4
4
  */
@@ -12,7 +12,7 @@ export declare type LoginCallbackParamsSuccess = {
12
12
  */
13
13
  friendship_status_changed?: boolean;
14
14
  };
15
- export declare type LoginCallbackParamsError = {
15
+ export type LoginCallbackParamsError = {
16
16
  /**
17
17
  * (Optional) Error code.
18
18
  */
package/package.json CHANGED
@@ -2,16 +2,16 @@
2
2
  "name": "line-ts",
3
3
  "sideEffects": false,
4
4
  "type": "module",
5
- "version": "1.0.1",
5
+ "version": "1.0.3",
6
6
  "description": "LINE SDK for TypeScript",
7
7
  "module": "./dist/index.es.js",
8
8
  "main": "./dist/index.cjs",
9
9
  "types": "./dist/types/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
+ "types": "./dist/types/index.d.ts",
12
13
  "import": "./dist/index.es.js",
13
- "require": "./dist/index.cjs",
14
- "types": "./dist/types/index.d.ts"
14
+ "require": "./dist/index.cjs"
15
15
  }
16
16
  },
17
17
  "files": [
@@ -23,23 +23,23 @@
23
23
  "scripts": {
24
24
  "test": "echo na",
25
25
  "lint": "tsc --noEmit && eslint ./src --ext .ts",
26
- "build": "rollup -c ./scripts/build.js",
26
+ "build": "rollup --bundleConfigAsCjs -c ./scripts/build.js",
27
27
  "release": "npm run lint && del dist && npm run build && np"
28
28
  },
29
29
  "devDependencies": {
30
- "@types/jsonwebtoken": "^8.5.8",
31
- "@typescript-eslint/eslint-plugin": "^5.10.1",
32
- "@typescript-eslint/parser": "^5.10.1",
30
+ "@types/jsonwebtoken": "^8.5.9",
31
+ "@typescript-eslint/eslint-plugin": "^5.59.2",
32
+ "@typescript-eslint/parser": "^5.59.2",
33
33
  "del-cli": "^4.0.1",
34
- "eslint": "^8.7.0",
35
- "eslint-config-prettier": "^8.3.0",
34
+ "eslint": "^8.40.0",
35
+ "eslint-config-prettier": "^8.8.0",
36
36
  "eslint-plugin-tree-shaking": "^1.10.0",
37
- "np": "^7.6.0",
38
- "prettier": "^2.5.1",
39
- "rollup": "^2.66.0",
40
- "rollup-plugin-typescript2": "^0.31.1",
41
- "typescript": "^4.5.5",
42
- "vitest": "^0.2.1"
37
+ "np": "^7.7.0",
38
+ "prettier": "^2.8.8",
39
+ "rollup": "^3.21.5",
40
+ "rollup-plugin-typescript2": "^0.34.1",
41
+ "typescript": "^4.9.5",
42
+ "vitest": "^0.31.0"
43
43
  },
44
44
  "keywords": [
45
45
  "line",