skapi-js 0.0.46 → 0.0.47
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 +1 -1
- package/deploy.py +14 -14
- package/dist/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/package.json +1 -1
- package/src/decorators.ts +3 -3
- package/src/skapi.ts +8 -8
- package/src/utils.ts +155 -91
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ let skapi = new Skapi('your_service_id', 'your_user_id');
|
|
|
33
33
|
For HTML projects:
|
|
34
34
|
```
|
|
35
35
|
<head>
|
|
36
|
-
<script src="https://broadwayinc.dev/jslib/skapi/0.0.
|
|
36
|
+
<script src="https://broadwayinc.dev/jslib/skapi/0.0.47/skapi.js">
|
|
37
37
|
</head>
|
|
38
38
|
<script>
|
|
39
39
|
let skapi = new Skapi('your_service_id', 'your_user_id');
|
package/deploy.py
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import os
|
|
3
3
|
|
|
4
|
+
ret = os.system('git pull')
|
|
5
|
+
|
|
6
|
+
if ret != 0:
|
|
7
|
+
print('==Failed to pull==')
|
|
8
|
+
|
|
4
9
|
with open('./package.json', 'r') as p:
|
|
5
10
|
package = json.loads(p.read())
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if ret != 0:
|
|
9
|
-
print('==Failed to pull==')
|
|
11
|
+
|
|
12
|
+
ret = os.system('npm publish')
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if ret != 0:
|
|
15
|
-
print('==Failed to publish==')
|
|
14
|
+
if ret != 0:
|
|
15
|
+
print('==Failed to publish==')
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
else:
|
|
18
|
+
ret = os.system(
|
|
19
|
+
f'aws s3 sync ./dist s3://broadwayinc.dev/jslib/skapi/{package["version"]} --acl public-read')
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
if ret != 0:
|
|
22
|
+
print('==Failed to upload==')
|
|
23
23
|
|
|
24
24
|
print('==END==')
|