Skip to content

Commit

Permalink
fix: move legacy code to separate directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zuev committed Dec 24, 2021
1 parent 78c2355 commit b38248c
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
src/contrib/**
src/generated/**
2 changes: 1 addition & 1 deletion examples/docapi.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const run = require('./').run;
const { DocAPIService } = require('../src/lib/slydb/docapi/docapi.js');
const { DocAPIService } = require('../legacy/lib/slydb/docapi/docapi.js');

run(async (session, _, folderId) => {
var endpoint =
Expand Down
2 changes: 1 addition & 1 deletion examples/functions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const run = require('./').run;
const { InvokeService } = require('../src/lib/serverless/functions/v1/invoke');
const { InvokeService } = require('../legacy/lib/serverless/functions/v1/invoke');

run(async (session, _, folderId) => {
const invokeService = new InvokeService(session);
Expand Down
2 changes: 1 addition & 1 deletion examples/ydb.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const run = require('./').run;
const { createDriver } = require('../src/lib/slydb');
const { createDriver } = require('../legacy/lib/slydb');

run(async (session, _, folderId) => {
const driver = createDriver();
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/operation.js → legacy/lib/operation.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const jsutil = require('src/lib/util');
const jsutil = require('legacy/lib/util');
const events = require('events');
const util = require('./util');
const operations = require('../api/operation');
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChannelCredentials } from 'grpc';
import { Session } from '../../../../index';
import { Session } from '../../../../../src';

export class InvokeService {
constructor(session?: Session);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fetch = require('node-fetch');
const yc = require('../../../../index');
const yc = require('../../../../../src');

function invokeUrl(id) {
return `https://functions.yandexcloud.net/${id}?integration=raw`;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Session } from '../../../index';
import { Session } from '../../../../src';
import { DynamoDB } from 'aws-sdk';

export class DocAPIService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var AWS = require('aws-sdk');
const { Session } = require('../../../index');
const { Session } = require('../../../../src');

class DocAPIServiceSettings {
constructor(address, credentials, options, tokenCreator) {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChannelCredentials } from 'grpc';
import { Session } from '../../../index';
import { Session } from '../../../../src';

export class StorageObject {
bucketName: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fetch = require('node-fetch');
const fs = require('fs');
const yc = require('../../../index.js');
const yc = require('../../../../src');

class StorageObject {
constructor(bucketName, objectName, bufferPromise) {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit b38248c

Please sign in to comment.