skapi-js 0.0.43 → 0.0.45

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/deploy.py +14 -8
  3. package/package.json +1 -1
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://skapi.com/lib/skapi.js">
36
+ <script src="https://broadwayinc.dev/jslib/skapi/0.0.45/skapi.js">
37
37
  </head>
38
38
  <script>
39
39
  let skapi = new Skapi('your_service_id', 'your_user_id');
package/deploy.py CHANGED
@@ -3,16 +3,22 @@ import os
3
3
 
4
4
  with open('./package.json', 'r') as p:
5
5
  package = json.loads(p.read())
6
- ret = os.system('npm publish')
7
-
6
+ ret = os.system('git pull')
7
+
8
8
  if ret != 0:
9
- print('==Failed to publish==')
10
-
9
+ print('==Failed to pull==')
10
+
11
11
  else:
12
- ret = os.system(
13
- f'aws s3 sync ./dist s3://broadwayinc.dev/jslib/skapi/{package["version"]} --acl public-read')
14
-
12
+ ret = os.system('npm publish')
13
+
15
14
  if ret != 0:
16
- print('==Failed to upload==')
15
+ print('==Failed to publish==')
16
+
17
+ else:
18
+ ret = os.system(
19
+ f'aws s3 sync ./dist s3://broadwayinc.dev/jslib/skapi/{package["version"]} --acl public-read')
20
+
21
+ if ret != 0:
22
+ print('==Failed to upload==')
17
23
 
18
24
  print('==END==')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skapi-js",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "description": "skapi serverless cloud javascript library",
5
5
  "main": "./dist/skapi.module.js",
6
6
  "scripts": {