This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a sample build configuration for JavaScript. | |
| # Check our guides at https://confluence.atlassian.com/x/14UWN for more examples. | |
| # Only use spaces to indent your .yml configuration. | |
| # ----- | |
| # You can specify a custom docker image from Docker Hub as your build environment. | |
| image: node:10.16.0 | |
| definitions: | |
| after-script: &merge-to-staging-with-versionup | |
| - apt-get update -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createLogger, format, transports } from 'winston'; | |
| const { combine, timestamp, label, splat, printf, colorize, json } = format; | |
| import requestTracer from '../helpers/request-tracer'; | |
| const defaultFormat = printf( | |
| ({ level = 'debug', message = '', label = 'default', timestamp, payload = {} }) => { | |
| let payloadStr = ''; | |
| try { | |
| payloadStr = JSON.stringify(payload); | |
| } catch (err) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"version":1,"resource":"file:///Users/joshbaek/Documents/jobs/jobs-server/src/packages/crypto/ase256gcm.spec.ts","entries":[{"id":"BjVz.ts","timestamp":1651567972889},{"id":"1m0P.ts","timestamp":1651567997247}]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getSiteMeta: async (ctx: Context, next: Function) => { | |
| try { | |
| const url = ctx.query.url; | |
| const result = await utilsService.getSiteMeta({ url }); | |
| return success(ctx, 200, `get site meta`, result.data); | |
| } catch (err) { | |
| err.stack = `${err.stack} ${new Error().stack}`; | |
| throw err; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PHP_VER="5.4.17" | |
| # Check if extension exists first | |
| php -m | grep pgsql | |
| # Update brew and install requirements | |
| brew update | |
| brew install autoconf | |
| # Download PHP source and extract |