Skip to content

Commit

Permalink
build: update lock files, formatter, and build (#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Mar 30, 2021
1 parent bf3fd57 commit a6c9665
Show file tree
Hide file tree
Showing 9 changed files with 1,245 additions and 1,485 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- master
- main
pull_request:
name: ci
jobs:
Expand All @@ -13,7 +13,7 @@ jobs:
service: [web, worker]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
Expand All @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CLOUD CATS

[![CircleCI badge](https://circleci.com/gh/JustinBeckwith/cloudcats/tree/master.svg?style=shield)](https://circleci.com/gh/JustinBeckwith/cloudcats/tree/master)
![GitHub Actions](https://github.com/JustinBeckwith/cloudcats/actions/workflows/ci.yaml/badge.svg?branch=main)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)
[![Known Vulnerabilities](https://snyk.io/test/github/justinbeckwith/cloudcats/badge.svg)](https://snyk.io/test/github/justinbeckwith/cloudcats)

Expand Down
459 changes: 240 additions & 219 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
"url": "https://github.com/JustinBeckwith/cloudcats/issues"
},
"homepage": "https://github.com/JustinBeckwith/cloudcats#readme",
"dependencies": {
"axios": "^0.21.0"
},
"devDependencies": {
"xo": "^0.38.0"
},
Expand Down
1,025 changes: 464 additions & 561 deletions web/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions worker/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ async function analyze(call) {
const ai = callbackify(analyzeImage);
const urls = await reddit.getImageUrls();
const q = async.queue((url, callback) => {
ai(url, call, err => {
if (!err) {
ai(url, call, error => {
if (!error) {
cnt++;
logger.info(`${cnt} objects complete`);
}

callback(err);
callback(error);
});
}, 15);
q.push(urls);
Expand Down
10 changes: 5 additions & 5 deletions worker/gcperror.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const logger = require('./logger');

module.exports = {
dig: err => {
if (err.name === 'PartialFailureError') {
for (const err1 of err.errors) {
dig: error => {
if (error.name === 'PartialFailureError') {
for (const error1 of error.errors) {
logger.error('Failed to analyze image');
for (const err2 of err1.errors) {
logger.error(err2);
for (const error2 of error1.errors) {
logger.error(error2);
}
}
}
Expand Down
Loading

0 comments on commit a6c9665

Please sign in to comment.