Skip to content

Commit

Permalink
Update deps (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
tovbinm authored Jun 17, 2022
1 parent 92cdba2 commit 385bdc9
Show file tree
Hide file tree
Showing 35 changed files with 1,391 additions and 2,008 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Publish Airbyte CDK package
run: |
cd faros-airbyte-cdk && \
npm i && \
npm ci && \
npm version ${{ env.TAG_VERSION }} && \
npm publish --access public --tag latest
env:
Expand All @@ -48,7 +48,7 @@ jobs:
cd destinations/airbyte-faros-destination && \
cat package.json | jq --arg V "${{ env.TAG_VERSION }}" '.dependencies."faros-airbyte-cdk" = $V' > package.tmp && \
mv package.tmp package.json && \
npm i && \
npm ci && \
npm version ${{ env.TAG_VERSION }} && \
npm publish --access public --tag latest
env:
Expand Down
2 changes: 1 addition & 1 deletion destinations/airbyte-faros-destination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"axios": "^0.26.0",
"date-format": "^4.0.6",
"faros-airbyte-cdk": "0.0.1",
"faros-feeds-sdk": "^0.10.0",
"faros-feeds-sdk": "^0.11.6",
"fs-extra": "^10.0.0",
"git-url-parse": "^11.6.0",
"json-to-graphql-query": "^2.2.0",
Expand Down
22 changes: 11 additions & 11 deletions destinations/airbyte-faros-destination/test/testing-tools.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import fs from 'fs';
import {Mockttp} from 'mockttp';
import {AffixOptions, open, track} from 'temp';
import tmp from 'tmp-promise';
import {Dictionary} from 'ts-essentials';
import util from 'util';

import {Edition, InvalidRecordStrategy} from '../src/destination';

// Automatically track and cleanup temp files at exit
// TODO: this does not seem to work - figure out what's wrong
track();
// Remove all controlled temporary objects on process exit
tmp.setGracefulCleanup();

/**
* Read a test resource by name
Expand All @@ -16,16 +16,15 @@ export function readTestResourceFile(fileName: string): string {
return fs.readFileSync(`test/resources/${fileName}`, 'utf8');
}

const writeFile = util.promisify(fs.write);

/**
* Creates a temporary file
* @return path to the temporary file
*/
export async function tempFile(
data: string,
opts?: AffixOptions
): Promise<string> {
const file = await open(opts);
fs.writeSync(file.fd, data, null, 'utf-8');
export async function tempFile(data: string, postfix: string): Promise<string> {
const file = await tmp.file({postfix});
await writeFile(file.fd, data, null, 'utf-8');
return file.path;
}

Expand Down Expand Up @@ -68,7 +67,8 @@ export async function tempConfig(
}`,
source_specific_configs,
};
return tempFile(JSON.stringify(conf), {suffix: '.json'});

return tempFile(JSON.stringify(conf), '.json');
}

export async function initMockttp(mockttp: Mockttp): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion faros-airbyte-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"watch": "tsc -b -w src test"
},
"dependencies": {
"commander": "^9.0.0",
"commander": "^9.3.0",
"fast-redact": "^3.0.2",
"json-schema-traverse": "^1.0.0",
"lodash": "^4.17.21",
Expand Down
Loading

0 comments on commit 385bdc9

Please sign in to comment.