Skip to content

Commit

Permalink
0.0.255
Browse files Browse the repository at this point in the history
ivansglazunov committed Jul 30, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent d83d40e commit fd1f73a
Showing 3 changed files with 43 additions and 1 deletion.
32 changes: 32 additions & 0 deletions migrations/1690737739096-deepcase-opened.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { generateApolloClient } from '@deep-foundation/hasura/client.js';
import Debug from 'debug';
import { DeepClient } from '../imports/client.js';
import { installPackage } from './1678940577209-deepcase.js';

const debug = Debug('deeplinks:migrations:deepcase-opened');
const log = debug.extend('log');
const error = debug.extend('error');

const rootClient = generateApolloClient({
path: `${process.env.MIGRATIONS_HASURA_PATH}/v1/graphql`,
ssl: !!+(process.env.MIGRATIONS_HASURA_SSL || 0),
secret: process.env.MIGRATIONS_HASURA_SECRET,
});

const root = new DeepClient({
apolloClient: rootClient,
});

export const up = async () => {
log('up');

const adminId = await root.id('deep', 'admin');
const admin = await root.login({ linkId: adminId });
const deep = new DeepClient({ deep: root, ...admin });

const packageId = await installPackage(deep, '@deep-foundation/deepcase-opened');
};

export const down = async () => {
log('down');
};
9 changes: 9 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.264",
"version": "0.0.265",
"license": "Unlicense",
"type": "module",
"scripts": {
@@ -34,6 +34,7 @@
},
"dependencies": {
"@apollo/client": "^3.7.14",
"@deep-foundation/deepcase-opened": "^0.0.1",
"@deep-foundation/hasura": "^0.0.46",
"@deep-foundation/materialized-path": "^0.0.25",
"@deep-foundation/npm-packager": "^0.0.30",

0 comments on commit fd1f73a

Please sign in to comment.