Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: shm-open/code-push-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: cloudscapelabs/code-push-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: csl
Choose a head ref
  • 15 commits
  • 15 files changed
  • 5 contributors

Commits on Mar 28, 2022

  1. Verified

    This commit was signed with the committer’s verified signature.
    kbrownlees-csl Kieran Brownlees
    Copy the full SHA
    397863d View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    kbrownlees-csl Kieran Brownlees
    Copy the full SHA
    53f5f6a View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    kbrownlees-csl Kieran Brownlees
    Copy the full SHA
    780be9a View commit details
  4. chore(app): add sentry

    kbrownlees-csl committed Mar 28, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    kbrownlees-csl Kieran Brownlees
    Copy the full SHA
    eadeb0f View commit details

Commits on Sep 17, 2024

  1. Copy the full SHA
    0ad7fdf View commit details
  2. Copy the full SHA
    6b34cad View commit details
  3. Copy the full SHA
    9b13175 View commit details

Commits on Sep 18, 2024

  1. Copy the full SHA
    ce62a75 View commit details
  2. Merge pull request #1 from cloudscapelabs/jh/vanta-remediate-high-vul…

    …nerabilities-identified-sc-36713
    
    Update dependencies
    josh-cloudscape authored Sep 18, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6b60f8b View commit details

Commits on Feb 26, 2025

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4bef89e View commit details
  2. Merge pull request #3 from cloudscapelabs/whitesource/configure

    Configure Mend for GitHub.com
    kbrownlees authored Feb 26, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9c5a9da View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7c00379 View commit details

Commits on Mar 16, 2025

  1. Merge pull request #4 from cloudscapelabs/whitesource-remediate/expre…

    …ss-4.x-lockfile
    
    fix(deps): update dependency express to v4.21.2
    josh-cloudscape authored Mar 16, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f6dddd8 View commit details

Commits on Mar 18, 2025

  1. Verified

    This commit was signed with the committer’s verified signature.
    kbrownlees-csl Kieran Brownlees
    Copy the full SHA
    a969041 View commit details

Commits on Mar 27, 2025

  1. Merge pull request #10 from cloudscapelabs/kb/update-mend-settings

    chore(ci): update mend settings
    kbrownlees authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1938252 View commit details
Showing with 7,227 additions and 4,893 deletions.
  1. +3 −1 .gitignore
  2. +1 −0 .npmrc
  3. +2 −0 .npmrc-parameter
  4. +27 −0 .whitesource
  5. +30 −0 CHANGELOG.md
  6. +13 −0 CSL-README.md
  7. +5 −2 Dockerfile
  8. +8 −5 Makefile
  9. +21 −0 docker-compose.dev.yml
  10. +6,906 −4,704 package-lock.json
  11. +56 −56 package.json
  12. +16 −5 src/app.ts
  13. +2 −0 src/core/config.ts
  14. +120 −120 src/core/utils/storage.ts
  15. +17 −0 src/sentry.ts
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -13,7 +13,9 @@ bin/
# deps
node_modules/


# vs code
.history
.idea

# docker build info
docker-build.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@cloudscapelabs:registry=https://npm.pkg.github.com
2 changes: 2 additions & 0 deletions .npmrc-parameter
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}
@cloudscapelabs:registry=https://npm.pkg.github.com
27 changes: 27 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"repoConfigMode": "createOnboardingPR",
"enableCustomProductMapping": true,
"ignoreSpecificVulnerabilities": true,
"scanSettings": {
"configMode": "AUTO",
"baseBranches": [],
"repoNameSync": true,
"enableLicenseViolations": true
},
"checkRunSettings": {
"vulnerableCheckRunConclusionLevel": "failure",
"licenseCheckRunConclusionLevel": "failure",
"displayMode": "diff",
"useMendCheckNames": true
},
"issueSettings": {
"minSeverityLevel": "HIGH",
"displayLicenseViolations": true
},
"remediateSettings": {
"workflowRules": {
"enabled": true,
"minVulnerabilitySeverity": "LOW"
}
}
}
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,36 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [2.1.6-csl.1](https://github.com/cloudscapelabs/code-push-server/compare/v2.1.2...v2.1.6-csl.1) (2024-09-17)


### Bug Fixes

* **deps:** update dependency aws-sdk to v2.1109.0 ([1d3cab0](https://github.com/cloudscapelabs/code-push-server/commit/1d3cab0c310ca39398e65d334970add1e9119529))
* **deps:** update dependency aws-sdk to v2.1121.0 ([f59e9ae](https://github.com/cloudscapelabs/code-push-server/commit/f59e9ae1d2605b2f5938fc6e8dde6c8e3a20711f))
* **deps:** update dependency aws-sdk to v2.1176.0 ([eb3c14a](https://github.com/cloudscapelabs/code-push-server/commit/eb3c14abcc8b673f485088f1b8684504a34b60ac))
* **deps:** update dependency body-parser to v1.20.0 ([ae55396](https://github.com/cloudscapelabs/code-push-server/commit/ae553969a3154617a60db8890da7a3467c5cbcd4))
* **deps:** update dependency cos-nodejs-sdk-v5 to v2.11.12 ([fa00c74](https://github.com/cloudscapelabs/code-push-server/commit/fa00c74cf951278ec547c00d0ed713b40a2710d3))
* **deps:** update dependency cos-nodejs-sdk-v5 to v2.11.7 ([d74aa2a](https://github.com/cloudscapelabs/code-push-server/commit/d74aa2a43670971e8eac227412931ddc9f39a91a))
* **deps:** update dependency express to v4.18.0 ([9b2fee3](https://github.com/cloudscapelabs/code-push-server/commit/9b2fee3cf87a79ad7d26bf7e342d70efb21af273))
* **deps:** update dependency express to v4.18.1 ([2adad28](https://github.com/cloudscapelabs/code-push-server/commit/2adad280d937fd9176cdc4a5f20547f9ecd88288))
* **deps:** update dependency fs-extra to v10.1.0 ([2699a4a](https://github.com/cloudscapelabs/code-push-server/commit/2699a4a6f2cf77d917a8cce5a0eac348149efa1a))
* **deps:** update dependency helmet to v5.1.0 ([aefde36](https://github.com/cloudscapelabs/code-push-server/commit/aefde366d6eb98ea401214709051ebab5b6f9ecc))
* **deps:** update dependency i18n to v0.15.0 ([7cc216c](https://github.com/cloudscapelabs/code-push-server/commit/7cc216ce5eb88ab4ff299671547f5c39c1ea146a))
* **deps:** update dependency moment to v2.29.2 ([a4c875d](https://github.com/cloudscapelabs/code-push-server/commit/a4c875d7c0b69f88a82c1cb1ee43e2b354ad97b1))
* **deps:** update dependency moment to v2.29.3 ([b9af976](https://github.com/cloudscapelabs/code-push-server/commit/b9af976fcd701aa3d1645c8b82f50932c4fb414c))
* **deps:** update dependency nodemailer to v6.7.7 ([85ad522](https://github.com/cloudscapelabs/code-push-server/commit/85ad522d5b4cb31f57cf2b9bca35d9d64d35e45d))
* **deps:** update dependency qiniu to v7.5.0 ([f9068c2](https://github.com/cloudscapelabs/code-push-server/commit/f9068c2dcc4e83aec9820b05b21262fe859f88d6))
* **deps:** update dependency qiniu to v7.7.0 ([732a4ed](https://github.com/cloudscapelabs/code-push-server/commit/732a4ed6e82d2047b6df91ff004fc482aaffab6b))
* **deps:** update dependency redis to v4.0.6 ([442743f](https://github.com/cloudscapelabs/code-push-server/commit/442743f20d642d3a0adc3be0f6abbc707544077f))
* **deps:** update dependency redis to v4.2.0 ([5a744c6](https://github.com/cloudscapelabs/code-push-server/commit/5a744c6ea111e74a834307131bf0a8a5dbecb137))
* **deps:** update dependency sequelize to v6.18.0 ([34ef968](https://github.com/cloudscapelabs/code-push-server/commit/34ef96860518e9d31769bbed6c43b1501b6bb11b))
* **deps:** update dependency sequelize to v6.19.0 ([d447d42](https://github.com/cloudscapelabs/code-push-server/commit/d447d4258ec22ac367041a58599a2d803cf4d090))
* **deps:** update dependency sequelize to v6.21.3 ([7462594](https://github.com/cloudscapelabs/code-push-server/commit/746259467957a79b77d1ea1da69f9af5915b56b1))
* **deps:** update dependency yargs to v17.4.1 ([5431b62](https://github.com/cloudscapelabs/code-push-server/commit/5431b624a2b7b0d72a1dd79365c690c536b2b708))
* **deps:** update dependency yargs to v17.5.1 ([fd9f58e](https://github.com/cloudscapelabs/code-push-server/commit/fd9f58e580e516cb188b4bea8da3eeb837bacae6))
* use latest matching deployment ([fb70185](https://github.com/cloudscapelabs/code-push-server/commit/fb701856c688a1a62a6f52b3b3de58b1179b954f)), closes [#162](https://github.com/cloudscapelabs/code-push-server/issues/162)

### [2.1.6](https://github.com/shm-open/code-push-server/compare/v2.1.5...v2.1.6) (2022-07-17)


13 changes: 13 additions & 0 deletions CSL-README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Make a new release
1. Start docker `docker-compose -f docker-compose.dev.yml up -d` (needed for the tests)
2. Run `npm run release`. This will build, test, and then publish a new package version.
3. Create a `docker-build.json` file at the root of this repository.
```
{
"npmToken": "{IN PASSWORD MANAGER}",
"repository": "{DEV ACCOUNT ID}.dkr.ecr.ap-southeast-2.amazonaws.com/csl/code-push-server"
"repositoryProd": "{PROD ACCOUNT ID}.dkr.ecr.ap-southeast-2.amazonaws.com/csl/code-push-server"
}
```
4. Run `npm run release-docker`
5. Update the image in aws cdk and deploy
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM node:lts-alpine

ARG VERSION latest
ARG VERSION
ARG NPM_TOKEN

RUN npm install -g @shm-open/code-push-server@${VERSION} pm2@latest --no-optional
COPY .npmrc-parameter /root/.npmrc

RUN npm install -g @cloudscapelabs/code-push-server@${VERSION} pm2@latest --no-optional

RUN mkdir /data/

13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ROOT := $(shell pwd)
VERSION := $(shell node -p "require('./package.json').version")
export VERSION := $(shell node -p "require('./package.json').version")

export NPM_TOKEN := $(shell node -p "require('./docker-build.json').npmToken")
REPOSITORY := $(shell node -p "require('./docker-build.json').repository")
REPOSITORY_PROD := $(shell node -p "require('./docker-build.json').repositoryProd")

.PHONY: test
test:
@@ -17,7 +21,6 @@ coverage:
release-docker:
@echo "\nBuilding docker image..."
docker pull node:lts-alpine
docker build --build-arg VERSION=${VERSION} -t shmopen/code-push-server:latest --no-cache .
docker tag shmopen/code-push-server:latest shmopen/code-push-server:${VERSION}
docker push shmopen/code-push-server:${VERSION}
docker push shmopen/code-push-server:latest
docker build --platform="linux/amd64" --build-arg NPM_TOKEN --build-arg VERSION -t ${REPOSITORY}:${VERSION} -t ${REPOSITORY_PROD}:${VERSION} --no-cache .
docker push ${REPOSITORY}:${VERSION}
docker push ${REPOSITORY_PROD}:${VERSION}
21 changes: 21 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '3.7'
services:
mysql-dev:
image: mysql:latest
ports:
- '3306:3306'
volumes:
- data-mysql-dev:/var/lib/mysql
- ./sql/codepush-all-docker.sql:/docker-entrypoint-initdb.d/codepush-all.sql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'On'
MYSQL_ROOT_PASSWORD: 'password'
redis-dev:
image: redis:latest
ports:
- '6379:6379'
volumes:
- data-redis-dev:/data
volumes:
data-mysql-dev:
data-redis-dev:
Loading