mirror of
https://github.com/seejohnrun/haste-server.git
synced 2026-02-10 16:01:32 +00:00
add relative paths
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import * as winston from 'winston'
|
||||
import AWS from 'aws-sdk'
|
||||
import type { Callback, Store } from '../../types/store'
|
||||
import type { AmazonStoreConfig } from '../../types/config'
|
||||
import type { Callback, Store } from 'src/types/store'
|
||||
import type { AmazonStoreConfig } from 'src/types/config'
|
||||
|
||||
class AmazonS3DocumentStore implements Store {
|
||||
bucket: string | undefined
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Config } from '../../types/config'
|
||||
import type { Store } from '../../types/store'
|
||||
import type { Config } from 'src/types/config'
|
||||
import type { Store } from 'src/types/store'
|
||||
|
||||
const build = async (config: Config): Promise<Store> => {
|
||||
const DocumentStore = (
|
||||
|
||||
@@ -2,8 +2,8 @@ import * as winston from 'winston'
|
||||
import * as fs from 'fs'
|
||||
import * as crypto from 'crypto'
|
||||
|
||||
import type { Callback, Store } from '../../types/store'
|
||||
import type { FileStoreConfig } from '../../types/config'
|
||||
import type { Callback, Store } from 'src/types/store'
|
||||
import type { FileStoreConfig } from 'src/types/config'
|
||||
|
||||
// Generate md5 of a string
|
||||
const md5 = (str: string) => {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Datastore, PathType } from '@google-cloud/datastore'
|
||||
import * as winston from 'winston'
|
||||
|
||||
import type { Callback, Store } from '../../types/store'
|
||||
import type { GoogleStoreConfig } from '../../types/config'
|
||||
import type { Callback, Store } from 'src/types/store'
|
||||
import type { GoogleStoreConfig } from 'src/types/config'
|
||||
|
||||
class GoogleDatastoreDocumentStore implements Store {
|
||||
kind: string
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as winston from 'winston'
|
||||
import Memcached = require('memcached')
|
||||
|
||||
import type { Callback, Store } from '../../types/store'
|
||||
import type { MemcachedStoreConfig } from '../../types/config'
|
||||
import type { Callback, Store } from 'src/types/store'
|
||||
import type { MemcachedStoreConfig } from 'src/types/config'
|
||||
|
||||
class MemcachedDocumentStore implements Store {
|
||||
expire: number | undefined
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as winston from 'winston'
|
||||
import { MongoClient } from 'mongodb'
|
||||
|
||||
import type { Callback, Store } from '../../types/store'
|
||||
import type { MongoStoreConfig } from '../../types/config'
|
||||
import type { Callback, Store } from 'src/types/store'
|
||||
import type { MongoStoreConfig } from 'src/types/config'
|
||||
|
||||
type ConnectCallback = (error?: Error, db?: MongoClient) => void
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as winston from 'winston'
|
||||
import { Pool, PoolClient } from 'pg'
|
||||
|
||||
import type { Callback, Store } from '../../types/store'
|
||||
import type { PostgresStoreConfig } from '../../types/config'
|
||||
import type { Callback, Store } from 'src/types/store'
|
||||
import type { PostgresStoreConfig } from 'src/types/config'
|
||||
|
||||
type ConnectCallback = (
|
||||
error?: Error,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as winston from 'winston'
|
||||
import { createClient } from 'redis'
|
||||
import { bool } from 'aws-sdk/clients/redshiftdata'
|
||||
import { Callback, Store } from '../../types/store'
|
||||
import { RedisStoreConfig } from '../../types/config'
|
||||
import { Callback, Store } from 'src/types/store'
|
||||
import { RedisStoreConfig } from 'src/types/config'
|
||||
|
||||
export type RedisClientType = ReturnType<typeof createClient>
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ import * as crypto from 'crypto'
|
||||
|
||||
import rethink, { RethinkClient } from 'rethinkdbdash'
|
||||
|
||||
import type { RethinkDbStoreConfig } from '../../types/config'
|
||||
import type { Callback } from '../../types/store'
|
||||
import type { RethinkDbStoreConfig } from 'src/types/config'
|
||||
import type { Callback } from 'src/types/store'
|
||||
|
||||
const md5 = (str: string) => {
|
||||
const md5sum = crypto.createHash('md5')
|
||||
|
||||
Reference in New Issue
Block a user