Skip to content

Commit

Permalink
chore(release): 0.3.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasGassmann committed May 1, 2020
1 parent 1090ade commit d3deb23
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-sdk",
"version": "0.3.0-beta.0",
"version": "0.3.0-beta.1",
"description": "The beacon-sdk is setup in a way to allow for p2p communication between wallets and dapps",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
10 changes: 7 additions & 3 deletions scripts/check-sdk-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ const packageJsonContent = JSON.parse(readFileSync(packageJson, 'utf-8'))
const packageLockJsonContent = JSON.parse(readFileSync(packageLockJson, 'utf-8'))

if (packageJsonContent.version !== packageLockJsonContent.version) {
throw new Error(`Package (${packageJsonContent.version}) and Package Lock (${packageLockJsonContent.version}) version mismatch!`)
throw new Error(
`Package (${packageJsonContent.version}) and Package Lock (${packageLockJsonContent.version}) version mismatch!`
)
}

if (!packageJsonContent.version.startsWith(SDK_VERSION)) {
throw new Error(`Package version (${packageJsonContent.version}) does not match SDK Version (${SDK_VERSION})`)
if (packageJsonContent.version !== SDK_VERSION) {
throw new Error(
`Package version (${packageJsonContent.version}) does not match SDK Version (${SDK_VERSION})`
)
}
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const SDK_VERSION: string = '0.3.0-beta.0'
export const SDK_VERSION: string = '0.3.0-beta.1'
export const BEACON_VERSION: string = '1'

0 comments on commit d3deb23

Please sign in to comment.