@blockcerts/blockcerts-verifier 1.40.0 → 1.44.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockcerts/blockcerts-verifier",
3
- "version": "1.40.0",
3
+ "version": "1.44.0",
4
4
  "description": "A standalone universal viewer and verifier for blockcerts credentials",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  "main": "dist/main.js",
10
10
  "dependencies": {
11
11
  "@babel/runtime": "^7.6.0",
12
- "@blockcerts/cert-verifier-js": "^5.3.0",
12
+ "@blockcerts/cert-verifier-js": "^5.11.0",
13
13
  "@blockcerts/cert-verifier-js-v1-legacy": "^3.0.0",
14
14
  "@polymer/lit-element": "0.5.1",
15
15
  "@polymer/polymer": "3.4.1",
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # automate PR process to Blockcerts.org: update blockcerts-verifier dependency
4
+ GITHUB_COM=github.com
5
+ BLOCKCERTS_GITHUB_REPO=blockchain-certificates/blockchain-certificates.github.io
6
+ GIT_REPO=$GITHUB_COM/$BLOCKCERTS_GITHUB_REPO.git
7
+ WORK_BRANCH=chore/update-bv
8
+ GITHUB_USER=botcerts
9
+
10
+ # clone CTS repo
11
+ git clone https://$GIT_REPO
12
+ cd blockchain-certificates.github.io
13
+
14
+ # rename remote to add authentication
15
+ git remote rm origin
16
+ git remote add origin https://$GITHUB_USER:$BOTCERTS_PR_GITHUB_TOKEN@$GIT_REPO
17
+
18
+ # checkout new branch
19
+ git checkout -b $WORK_BRANCH
20
+
21
+ # update blockcerts-verifier
22
+ npm install
23
+ npm i @blockcerts/blockcerts-verifier
24
+
25
+ # clean unwanted files. Note: we could also handle that with .gitignore
26
+ echo 'Clean unwanted files'
27
+ pwd
28
+ git clean -df
29
+
30
+ # commit
31
+ git status
32
+ git add .
33
+ git commit -m "chore(BUV): update to latest version"
34
+
35
+ # push
36
+ git push origin $WORK_BRANCH
37
+
38
+ # open PR
39
+ #{
40
+ # "title": "Amazing new feature",
41
+ # "body": "Please pull this in!",
42
+ # "head": "octocat:new-feature",
43
+ # "base": "master"
44
+ #}
45
+
46
+ curl --data '{"head":"'${WORK_BRANCH}'", "base":"master", "title": "bump Blockcerts Verifier version", "body": "Please review and merge @lemoustachiste @raiseandfall"}' -H "Authorization: token ${BOTCERTS_PR_GITHUB_TOKEN}" https://api.github.com/repos/$BLOCKCERTS_GITHUB_REPO/pulls -v
47
+
48
+ # clean after use
49
+ cd ..
50
+ echo 'Delete working directory'
51
+ rm -rf blockchain-certificates.github.io