@cocreate/authorize 1.4.0 → 1.5.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,83 +1,70 @@
1
- name: Automated Deployment
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
-
45
- upload:
46
- runs-on: ubuntu-latest
47
-
48
- steps:
49
- - name: Checkout
50
- uses: actions/checkout@v3
51
-
52
- - name: Setup Node.js
53
- uses: actions/setup-node@v3
54
- with:
55
- node-version: 16
56
-
57
- - name: Get Environment Variables
58
- run: |
59
- echo "organization_id=${{ secrets.COCREATE_ORGANIZATION_ID }}" >> $GITHUB_ENV
60
- echo "key=${{ secrets.COCREATE_KEY }}" >> $GITHUB_ENV
61
- echo "host=${{ secrets.COCREATE_HOST }}" >> $GITHUB_ENV
62
-
63
- - name: Install @cocreate/cli
64
- run: npm install -g @cocreate/cli
65
-
66
- - name: CoCreate CLI Upload
67
- run: coc upload
68
-
69
- # docs:
70
- # runs-on: ubuntu-latest
71
- # steps:
72
- # - name: Checkout
73
- # uses: actions/checkout@v3
74
- # - name: setup nodejs
75
- # uses: actions/setup-node@v3
76
- # with:
77
- # node-version: 16
78
- # - name: update documentation
79
- # uses: CoCreate-app/CoCreate-docs@master
80
- # env:
81
- # organization_id: ${{ secrets.COCREATE_ORGANIZATION_ID }}
82
- # key: ${{ secrets.COCREATE_KEY }}
83
- # 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,20 @@
1
+ ## [1.5.1](https://github.com/CoCreate-app/CoCreate-authorize/compare/v1.5.0...v1.5.1) (2023-08-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * /dist/CoCreate.js updated to https://CoCreate.app/dist/CoCreate.js ([c4155f3](https://github.com/CoCreate-app/CoCreate-authorize/commit/c4155f34689265420a6586e695207acf08b39c6e))
7
+ * add method to crud object ([92c233a](https://github.com/CoCreate-app/CoCreate-authorize/commit/92c233a97fd950bfa7b7c3ba5a6f18fa1ed9bc4a))
8
+ * replace cdn with /dist ([795573d](https://github.com/CoCreate-app/CoCreate-authorize/commit/795573d27f41674b054c0c40696ccd69f793091c))
9
+ * update file uploader ([95d8ad8](https://github.com/CoCreate-app/CoCreate-authorize/commit/95d8ad859292abe279cc7c83b57ee4e8ccecd415))
10
+
11
+ # [1.5.0](https://github.com/CoCreate-app/CoCreate-authorize/compare/v1.4.0...v1.5.0) (2023-08-17)
12
+
13
+
14
+ ### Features
15
+
16
+ * bump cocreate dependencies for the latest updates and features ([6614a3a](https://github.com/CoCreate-app/CoCreate-authorize/commit/6614a3ab6c0f31a430f61f94908752c8eb24baeb))
17
+
1
18
  # [1.4.0](https://github.com/CoCreate-app/CoCreate-authorize/compare/v1.3.14...v1.4.0) (2023-08-16)
2
19
 
3
20
 
package/docs/index.html CHANGED
@@ -219,14 +219,7 @@
219
219
  </div>
220
220
  </div>
221
221
 
222
- <script>
223
- var CoCreateConfig = {
224
- key: "2061acef-0451-4545-f754-60cf8160",
225
- organization_id: "5ff747727005da1c272740ab",
226
- };
227
- </script>
228
-
229
222
  <!--CoCreateJS-->
230
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
223
+ <script src="https://CoCreate.app/dist/CoCreate.js"></script>
231
224
  </body>
232
225
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/authorize",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "A simple authorize component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "authorize",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "main": "./src/index.js",
47
47
  "dependencies": {
48
- "@cocreate/crud-client": "^1.21.24",
49
- "@cocreate/utils": "^1.21.16"
48
+ "@cocreate/crud-client": "^1.22.0",
49
+ "@cocreate/utils": "^1.22.0"
50
50
  }
51
51
  }
package/src/index.js CHANGED
@@ -78,6 +78,7 @@
78
78
  return null;
79
79
 
80
80
  let request = {
81
+ method: 'read.object',
81
82
  array: 'keys',
82
83
  organization_id,
83
84
  filter: {