@cocreate/api 1.11.0 → 1.12.1

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.
@@ -1,122 +1,70 @@
1
- name: Automated
2
- "on":
3
- push:
4
- branches:
5
- - master
6
- jobs:
7
- about:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - name: Checkout
11
- uses: actions/checkout@v3
12
- - name: setup nodejs
13
- uses: actions/setup-node@v3
14
- with:
15
- node-version: 16
16
- - name: Jaid/action-sync-node-meta
17
- uses: jaid/action-sync-node-meta@v1.4.0
18
- with:
19
- direction: overwrite-github
20
- githubToken: "${{ secrets.GITHUB }}"
21
- release:
22
- runs-on: ubuntu-latest
23
- steps:
24
- - name: Checkout
25
- uses: actions/checkout@v3
26
- - name: setup nodejs
27
- uses: actions/setup-node@v3
28
- with:
29
- node-version: 14
30
- - name: Semantic Release
31
- uses: cycjimmy/semantic-release-action@v3
32
- id: semantic
33
- with:
34
- extra_plugins: |
35
- @semantic-release/changelog
36
- @semantic-release/git
37
- @semantic-release/github
38
- env:
39
- GITHUB_TOKEN: "${{ secrets.GITHUB }}"
40
- NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
41
- outputs:
42
- new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
43
- new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
44
- cdn:
45
- runs-on: ubuntu-latest
46
- needs: release
47
- if: needs.release.outputs.new_release_published == 'true'
48
- env:
49
- VERSION: "${{ needs.release.outputs.new_release_version }}"
50
- steps:
51
- - name: Checkout
52
- uses: actions/checkout@v3
53
- - name: setup nodejs
54
- uses: actions/setup-node@v3
55
- with:
56
- node-version: 16
57
- - name: yarn install
58
- run: >
59
- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
60
- .npmrc
61
-
62
- yarn install
63
- - name: yarn build
64
- run: yarn build
65
- - name: upload bundle as version
66
- uses: CoCreate-app/CoCreate-s3@master
67
- with:
68
- aws-key-id: "${{ secrets.AWSACCESSKEYID }}"
69
- aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
70
- bucket: testcrudbucket
71
- source: ./dist
72
- destination: "/api/${{env.VERSION}}"
73
- acl: public-read
74
- - name: upload bundle as latest
75
- uses: CoCreate-app/CoCreate-s3@master
76
- with:
77
- aws-key-id: "${{ secrets.AWSACCESSKEYID }}"
78
- aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
79
- bucket: testcrudbucket
80
- source: ./dist
81
- destination: /api/latest
82
- acl: public-read
83
- invalidations: true
84
- upload:
85
- runs-on: ubuntu-latest
86
-
87
- steps:
88
- - name: Checkout
89
- uses: actions/checkout@v3
90
-
91
- - name: Setup Node.js
92
- uses: actions/setup-node@v3
93
- with:
94
- node-version: 16
95
-
96
- - name: Get Environment Variables
97
- run: |
98
- echo "organization_id=${{ secrets.COCREATE_ORGANIZATION_ID }}" >> $GITHUB_ENV
99
- echo "key=${{ secrets.COCREATE_KEY }}" >> $GITHUB_ENV
100
- echo "host=${{ secrets.COCREATE_HOST }}" >> $GITHUB_ENV
101
-
102
- - name: Install @cocreate/cli
103
- run: npm install -g @cocreate/cli
104
-
105
- - name: CoCreate CLI Upload
106
- run: coc upload
107
-
108
- # docs:
109
- # runs-on: ubuntu-latest
110
- # steps:
111
- # - name: Checkout
112
- # uses: actions/checkout@v3
113
- # - name: setup nodejs
114
- # uses: actions/setup-node@v3
115
- # with:
116
- # node-version: 16
117
- # - name: update documentation
118
- # uses: CoCreate-app/CoCreate-docs@master
119
- # env:
120
- # organization_id: ${{ secrets.COCREATE_ORGANIZATION_ID }}
121
- # key: ${{ secrets.COCREATE_KEY }}
122
- # host: ${{ secrets.COCREATE_HOST }}
1
+ name: Automated Workflow
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+ jobs:
7
+ about:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Checkout
11
+ uses: actions/checkout@v3
12
+ - name: Setup Node.js
13
+ uses: actions/setup-node@v3
14
+ with:
15
+ node-version: 16
16
+ - name: Jaid/action-sync-node-meta
17
+ uses: jaid/action-sync-node-meta@v1.4.0
18
+ with:
19
+ direction: overwrite-github
20
+ githubToken: "${{ secrets.GITHUB }}"
21
+ release:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - name: Checkout
25
+ uses: actions/checkout@v3
26
+ - name: Setup Node.js
27
+ uses: actions/setup-node@v3
28
+ with:
29
+ node-version: 14
30
+ - name: Semantic Release
31
+ uses: cycjimmy/semantic-release-action@v3
32
+ id: semantic
33
+ with:
34
+ extra_plugins: |
35
+ @semantic-release/changelog
36
+ @semantic-release/git
37
+ @semantic-release/github
38
+ env:
39
+ GITHUB_TOKEN: "${{ secrets.GITHUB }}"
40
+ NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
41
+ outputs:
42
+ new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
43
+ new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
44
+ upload:
45
+ runs-on: ubuntu-latest
46
+ needs: release
47
+ if: needs.release.outputs.new_release_published == 'true'
48
+ env:
49
+ VERSION: "${{ needs.release.outputs.new_release_version }}"
50
+ steps:
51
+ - name: Checkout
52
+ uses: actions/checkout@v3
53
+ - name: Setup Node.js
54
+ uses: actions/setup-node@v3
55
+ with:
56
+ node-version: 16
57
+ - name: Set npm registry auth
58
+ run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
59
+ - name: Install dependencies
60
+ run: yarn install
61
+ - name: Build
62
+ run: yarn build
63
+ - name: Set Environment Variables
64
+ run: |
65
+ echo "organization_id=${{ secrets.COCREATE_ORGANIZATION_ID }}" >> $GITHUB_ENV
66
+ echo "key=${{ secrets.COCREATE_KEY }}" >> $GITHUB_ENV
67
+ echo "host=${{ secrets.COCREATE_HOST }}" >> $GITHUB_ENV
68
+ - name: CoCreate Upload
69
+ run: coc upload
70
+
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## [1.12.1](https://github.com/CoCreate-app/CoCreate-api/compare/v1.12.0...v1.12.1) (2023-08-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * /dist/CoCreate.js updated to https://CoCreate.app/dist/CoCreate.js ([cb75597](https://github.com/CoCreate-app/CoCreate-api/commit/cb75597e3b76806e9173daffe6143d212b10bcb8))
7
+ * replace cdn with /dist ([46a8e56](https://github.com/CoCreate-app/CoCreate-api/commit/46a8e564a7287b404f89263196d9622eea21eb0f))
8
+ * update file uploader ([b98cabf](https://github.com/CoCreate-app/CoCreate-api/commit/b98cabfbd0c5e076f33920b50889af9a04299769))
9
+
10
+ # [1.12.0](https://github.com/CoCreate-app/CoCreate-api/compare/v1.11.0...v1.12.0) (2023-08-17)
11
+
12
+
13
+ ### Features
14
+
15
+ * bump cocreate dependencies for the latest updates and features ([e7ad0fb](https://github.com/CoCreate-app/CoCreate-api/commit/e7ad0fbceff3a97079f395fe417062e1ba2b2b00))
16
+
1
17
  # [1.11.0](https://github.com/CoCreate-app/CoCreate-api/compare/v1.10.31...v1.11.0) (2023-08-16)
2
18
 
3
19
 
package/docs/form.html CHANGED
@@ -209,7 +209,7 @@
209
209
  </main>
210
210
 
211
211
  <script src="./apikey.js"></script>
212
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
212
+ <script src="https://CoCreate.app/dist/CoCreate.js"></script>
213
213
 
214
214
  </body>
215
215
 
package/docs/index.html CHANGED
@@ -101,11 +101,6 @@
101
101
  <p class="padding:10px_0px line-height:1.5">
102
102
  In order to the client to use the local server, it should be set as follows.
103
103
  <pre><code class="language-javascript">
104
- var CoCreateConfig = {
105
- key: '2061acef-0451-4545-f754-60cf8160',
106
- organization_id: '5ff747727005da1c272740ab',
107
- host: 'localhost:8081'
108
- }
109
104
  </code></pre>
110
105
  </p>
111
106
 
@@ -235,7 +230,7 @@
235
230
  </button>
236
231
  </main>
237
232
  <script src="/apikey.js"></script>
238
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
233
+ <script src="https://CoCreate.app/dist/CoCreate.js"></script>
239
234
  </body>
240
235
 
241
236
  </html>
package/docs/module.html CHANGED
@@ -199,7 +199,7 @@
199
199
  </main>
200
200
 
201
201
  <script src="./apikey.js"></script>
202
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
202
+ <script src="https://CoCreate.app/dist/CoCreate.js"></script>
203
203
 
204
204
  </body>
205
205
 
package/docs/server.html CHANGED
@@ -210,7 +210,7 @@
210
210
  </main>
211
211
 
212
212
  <script src="./apikey.js"></script>
213
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
213
+ <script src="https://CoCreate.app/dist/CoCreate.js"></script>
214
214
 
215
215
  </body>
216
216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/api",
3
- "version": "1.11.0",
3
+ "version": "1.12.1",
4
4
  "description": "A simple api helper component in vanilla javascript used by JavaScript developers to create thirdparty api intergrations. CoCreate-api includes the client component and server side for api processing. Thirdparty apis can be accessible using HTML5 attributes and/or JavaScript API. ",
5
5
  "keywords": [
6
6
  "thirdparty-api-intergration",
@@ -59,11 +59,11 @@
59
59
  "webpack-log": "^3.0.1"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/actions": "^1.8.32",
63
- "@cocreate/crud-client": "^1.21.24",
64
- "@cocreate/element-prototype": "^1.8.30",
65
- "@cocreate/render": "^1.24.32",
66
- "@cocreate/socket-client": "^1.23.26",
67
- "@cocreate/utils": "^1.21.16"
62
+ "@cocreate/actions": "^1.9.0",
63
+ "@cocreate/crud-client": "^1.22.0",
64
+ "@cocreate/element-prototype": "^1.9.0",
65
+ "@cocreate/render": "^1.25.0",
66
+ "@cocreate/socket-client": "^1.24.0",
67
+ "@cocreate/utils": "^1.22.0"
68
68
  }
69
69
  }