@intra-mart/smartlime 1.1.2 → 1.2.0-dev.20240124
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/lib/packages/Fetch/index.js +1 -1
- package/lib/packages/Me/index.d.ts +1 -0
- package/lib/packages/Me/index.js +2 -2
- package/lib/packages/OAuth/index.js +2 -0
- package/lib/packages/Session/index.d.ts +1 -0
- package/lib/packages/Session/index.js +2 -2
- package/lib/packages/WebView/hooks/index.web.d.ts +1 -0
- package/lib/packages/WebView/hooks/index.web.js +4 -0
- package/lib/packages/WebView/index.web.d.ts +2 -0
- package/lib/packages/WebView/index.web.js +5 -0
- package/package.json +25 -26
|
@@ -9,7 +9,7 @@ const fetchWrapper = async (token, input, init = {}) => {
|
|
|
9
9
|
credentials: 'omit',
|
|
10
10
|
...init,
|
|
11
11
|
headers: {
|
|
12
|
-
'X-Intramart-Session': 'never',
|
|
12
|
+
'X-Intramart-Session': 'never', // enforce "never" unless explicitly overridden by user
|
|
13
13
|
...init.headers,
|
|
14
14
|
Authorization: `Bearer ${token}`,
|
|
15
15
|
},
|
|
@@ -11,6 +11,7 @@ export interface SuccessResult {
|
|
|
11
11
|
}
|
|
12
12
|
export interface ErrorResult {
|
|
13
13
|
status: 'error';
|
|
14
|
+
couse?: unknown;
|
|
14
15
|
}
|
|
15
16
|
export declare const useRequestIMMe: (setter: ReturnType<typeof useMeStateRef>[1]) => () => Promise<SuccessResult | ErrorResult>;
|
|
16
17
|
declare const useMeStateRef: (renderTarget: RenderTarget) => readonly [import("react").MutableRefObject<Me | null>, (state: Me, silent?: boolean) => void, () => Me | null];
|
package/lib/packages/Me/index.js
CHANGED
|
@@ -6,6 +6,8 @@ import { IMOAuthError } from './IMOAuthError';
|
|
|
6
6
|
import { useRenderTarget } from '../../_shared/renderTarget';
|
|
7
7
|
import { useIMBaseUrl } from '../..';
|
|
8
8
|
import { join } from '../../utils/path';
|
|
9
|
+
import * as WebBrowser from 'expo-web-browser';
|
|
10
|
+
WebBrowser.maybeCompleteAuthSession();
|
|
9
11
|
const SUCCESS = 'success';
|
|
10
12
|
const EXCEPTION = 'exception';
|
|
11
13
|
const DEFAULT_STORAGE_KEY = '@example:IMAuthKey';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useHackSearchUI: () => {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intra-mart/smartlime",
|
|
3
3
|
"description": "expoで使用できるintra mart accelplatform SDK",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0-dev.20240124",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intra-mart",
|
|
7
7
|
"AccelPlatform",
|
|
@@ -42,40 +42,39 @@
|
|
|
42
42
|
"type": "tsc --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"expo": "^
|
|
45
|
+
"expo": "^50.0.2",
|
|
46
46
|
"react": "18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@react-native-async-storage/async-storage": "~1.
|
|
50
|
-
"expo-auth-session": "~5.0
|
|
51
|
-
"expo-crypto": "~12.
|
|
52
|
-
"expo-random": "~13.
|
|
53
|
-
"react-native-webview": "13.
|
|
49
|
+
"@react-native-async-storage/async-storage": "~1.21.0",
|
|
50
|
+
"expo-auth-session": "~5.4.0",
|
|
51
|
+
"expo-crypto": "~12.8.0",
|
|
52
|
+
"expo-random": "~13.6.0",
|
|
53
|
+
"react-native-webview": "13.6.4",
|
|
54
54
|
"set-cookie-parser": "^2.6.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@babel/core": "^7.
|
|
58
|
-
"@babel/preset-env": "^7.
|
|
59
|
-
"@types/jest": "^29.5.
|
|
60
|
-
"@types/react": "~18.2.
|
|
61
|
-
"@types/react-
|
|
62
|
-
"@types/
|
|
63
|
-
"@
|
|
64
|
-
"@typescript-eslint/
|
|
65
|
-
"
|
|
66
|
-
"eslint": "^
|
|
67
|
-
"eslint-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"jest": "^
|
|
71
|
-
"
|
|
72
|
-
"prettier": "^2.8.3",
|
|
57
|
+
"@babel/core": "^7.23.7",
|
|
58
|
+
"@babel/preset-env": "^7.23.8",
|
|
59
|
+
"@types/jest": "^29.5.11",
|
|
60
|
+
"@types/react": "~18.2.48",
|
|
61
|
+
"@types/react-test-renderer": "18.0.7",
|
|
62
|
+
"@types/set-cookie-parser": "^2.4.7",
|
|
63
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
64
|
+
"@typescript-eslint/parser": "^6.19.1",
|
|
65
|
+
"eslint": "^8.56.0",
|
|
66
|
+
"eslint-config-prettier": "^9.1.0",
|
|
67
|
+
"eslint-plugin-react": "^7.33.2",
|
|
68
|
+
"expo": "^50.0.2",
|
|
69
|
+
"jest": "^29.7.0",
|
|
70
|
+
"jest-expo": "^50.0.1",
|
|
71
|
+
"prettier": "^3.2.4",
|
|
73
72
|
"react": "18.2.0",
|
|
74
73
|
"react-dom": "18.2.0",
|
|
75
|
-
"react-native": "0.
|
|
74
|
+
"react-native": "0.73.2",
|
|
76
75
|
"react-test-renderer": "18.2.0",
|
|
77
|
-
"ts-jest": "^29.1.
|
|
78
|
-
"typescript": "^5.
|
|
76
|
+
"ts-jest": "^29.1.2",
|
|
77
|
+
"typescript": "^5.3.3"
|
|
79
78
|
},
|
|
80
79
|
"resolutions": {
|
|
81
80
|
"@types/react": "^18.2.14"
|