Skip to content
Prev Previous commit
Next Next commit
Update src/ paths
  • Loading branch information
daffl committed Dec 22, 2023
commit e5fc6864ce7c43e41a3ffd60bd6512a03a133e3b
2 changes: 1 addition & 1 deletion packages/adapter-commons/test/commons.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert'
import { select } from '../src'
import { select } from '../src/index'

describe('@feathersjs/adapter-commons', () => {
describe('select', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-commons/test/fixture.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AdapterBase, AdapterParams, PaginationOptions } from '../src'
import { AdapterBase, AdapterParams, PaginationOptions } from '../src/index'
import { Id, NullableId, Paginated } from '@feathersjs/feathers'
import { BadRequest, MethodNotAllowed } from '@feathersjs/errors/lib'

Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-commons/test/query.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert'
import { ObjectId } from 'mongodb'
import { filterQuery } from '../src'
import { filterQuery } from '../src/index'

describe('@feathersjs/adapter-commons/filterQuery', () => {
describe('$sort', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-commons/test/service.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/ban-ts-comment */
import assert from 'assert'
import { VALIDATED } from '../src'
import { VALIDATED } from '../src/index'
import { MethodService } from './fixture'

const METHODS: ['find', 'get', 'create', 'update', 'patch', 'remove'] = [
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-commons/test/sort.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert'
import { sorter } from '../src'
import { sorter } from '../src/index'

describe('@feathersjs/adapter-commons', () => {
describe('sorter', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-tests/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { strict as assert } from 'assert'
import adapterTests from '../src'
import adapterTests from '../src/index'

const testSuite = adapterTests([
'.events',
Expand Down
4 changes: 2 additions & 2 deletions packages/authentication-client/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import assert from 'assert'
import { feathers, Application } from '@feathersjs/feathers'

import client from '../src'
import { AuthenticationClient } from '../src'
import client from '../src/index'
import { AuthenticationClient } from '../src/index'
import { NotAuthenticated } from '@feathersjs/errors'

describe('@feathersjs/authentication-client', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication-client/test/integration/commons.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert'
import { Application } from '@feathersjs/feathers'
import '../../src'
import '../../src/index'

export default (
getApp: () => Application,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { feathers, Application as FeathersApplication } from '@feathersjs/feathe
import * as express from '@feathersjs/express'
import rest from '@feathersjs/rest-client'

import authClient from '../../src'
import authClient from '../../src/index'
import getApp from './fixture'
import commonTests from './commons'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { feathers, Application } from '@feathersjs/feathers'
import socketio from '@feathersjs/socketio'
import socketioClient from '@feathersjs/socketio-client'

import authClient from '../../src'
import authClient from '../../src/index'
import getApp from './fixture'
import commonTests from './commons'
import { AuthenticationResult } from '@feathersjs/authentication/lib'
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication-local/test/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { feathers } from '@feathersjs/feathers'
import { memory, MemoryService } from '@feathersjs/memory'
import { AuthenticationService, JWTStrategy } from '@feathersjs/authentication'

import { LocalStrategy, hooks } from '../src'
import { LocalStrategy, hooks } from '../src/index'
const { hashPassword, protect } = hooks

export type ServiceTypes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import assert from 'assert'
import { Application } from '@feathersjs/feathers'

import { hooks } from '../../src'
import { hooks } from '../../src/index'
import { createApplication, ServiceTypes } from '../fixture'

const { hashPassword } = hooks
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication-local/test/hooks/protect.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert'
import { HookContext } from '@feathersjs/feathers'
import { hooks } from '../../src'
import { hooks } from '../../src/index'

const { protect } = hooks

Expand Down
2 changes: 1 addition & 1 deletion packages/authentication-local/test/strategy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import omit from 'lodash/omit'
import { Application, HookContext } from '@feathersjs/feathers'
import { resolve } from '@feathersjs/schema'

import { LocalStrategy, passwordHash } from '../src'
import { LocalStrategy, passwordHash } from '../src/index'
import { createApplication, ServiceTypes } from './fixture'

describe('@feathersjs/authentication-local/strategy', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication-oauth/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { strict as assert } from 'assert'
import { feathers } from '@feathersjs/feathers'
import { oauth, OauthSetupSettings } from '../src'
import { oauth, OauthSetupSettings } from '../src/index'
import { AuthenticationService } from '@feathersjs/authentication'

describe('@feathersjs/authentication-oauth', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication-oauth/test/utils/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
AuthenticationParams
} from '@feathersjs/authentication'
import { provider } from './provider'
import { oauth, OAuthStrategy } from '../../src'
import { oauth, OAuthStrategy } from '../../src/index'

export interface ServiceTypes {
authentication: AuthenticationService
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication/test/hooks/authenticate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import assert from 'assert'
import { feathers, Application, Params, ServiceMethods } from '@feathersjs/feathers'

import { Strategy1, Strategy2 } from '../fixtures'
import { AuthenticationService, hooks } from '../../src'
import { AuthenticationService, hooks } from '../../src/index'

const { authenticate } = hooks

Expand Down
2 changes: 1 addition & 1 deletion packages/authentication/test/jwt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { feathers, Application, Service } from '@feathersjs/feathers'
import { memory } from '@feathersjs/memory'
import { getDispatch, resolve, resolveDispatch } from '@feathersjs/schema'

import { AuthenticationService, JWTStrategy, hooks } from '../src'
import { AuthenticationService, JWTStrategy, hooks } from '../src/index'
import { ServerResponse } from 'http'
import { MockRequest } from './fixtures'

Expand Down
2 changes: 1 addition & 1 deletion packages/authentication/test/service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { feathers, Application } from '@feathersjs/feathers'
import { memory, MemoryService } from '@feathersjs/memory'

import { defaultOptions } from '../src/options'
import { AuthenticationService } from '../src'
import { AuthenticationService } from '../src/index'

import { Strategy1 } from './fixtures'

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/cli.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { strict } from 'assert'
import { program } from '../src'
import { program } from '../src/index'

describe('cli tests', () => {
it('exports the program', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/test/debug.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { strict as assert } from 'assert'
import { createDebug, setDebug, noopDebug } from '../src'
import { createDebug, setDebug, noopDebug } from '../src/index'

const myDebug = createDebug('hello test')

Expand Down
2 changes: 1 addition & 1 deletion packages/commons/test/module.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { strict as assert } from 'assert'
import { _ } from '../src'
import { _ } from '../src/index'

describe('module', () => {
it('is commonjs compatible', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/test/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* tslint:disable:no-unused-expression */
import { strict as assert } from 'assert'
import { _, stripSlashes, isPromise, createSymbol } from '../src'
import { _, stripSlashes, isPromise, createSymbol } from '../src/index'

describe('@feathersjs/commons utils', () => {
it('stripSlashes', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/configuration/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { strict as assert } from 'assert'
import { feathers, Application } from '@feathersjs/feathers'
import { Ajv, schema } from '@feathersjs/schema'
import configuration from '../src'
import configuration from '../src/index'

describe('@feathersjs/configuration', () => {
const app: Application = feathers().configure(configuration())
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert'
import * as errors from '../src'
import * as errors from '../src/index'

const { convert } = errors

Expand Down
2 changes: 1 addition & 1 deletion packages/express/test/authentication.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { default as _axios } from 'axios'
import { feathers } from '@feathersjs/feathers'
import { createApplication } from '@feathersjs/authentication-local/test/fixture'
import { authenticate, AuthenticationResult } from '@feathersjs/authentication'
import * as express from '../src'
import * as express from '../src/index'

const expressify = express.default
const axios = _axios.create({
Expand Down
2 changes: 1 addition & 1 deletion packages/express/test/error-handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import fs from 'fs'
import { join } from 'path'
import { BadRequest, NotAcceptable, NotAuthenticated, NotFound, PaymentError } from '@feathersjs/errors'

import { errorHandler } from '../src'
import { errorHandler } from '../src/index'

const content = '<html><head></head><body>Error</body></html>'

Expand Down
2 changes: 1 addition & 1 deletion packages/express/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import path from 'path'
import https from 'https'
import { feathers, HookContext, Id } from '@feathersjs/feathers'

import { default as feathersExpress, rest, notFound, errorHandler, original, serveStatic } from '../src'
import { default as feathersExpress, rest, notFound, errorHandler, original, serveStatic } from '../src/index'
import { RequestListener } from 'http'

describe('@feathersjs/express', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/express/test/not-found-handler.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { strict as assert } from 'assert'
import { NotFound } from '@feathersjs/errors'

import { notFound } from '../src'
import { notFound } from '../src/index'

const handler = notFound as any

Expand Down
2 changes: 1 addition & 1 deletion packages/express/test/rest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ApplicationHookMap, feathers, HookContext, Id, Params } from '@feathers
import { Service, restTests } from '@feathersjs/tests'
import { BadRequest } from '@feathersjs/errors'

import * as express from '../src'
import * as express from '../src/index'

const expressify = express.default
const { rest } = express
Expand Down
2 changes: 1 addition & 1 deletion packages/feathers/test/application.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-empty-function */
import assert from 'assert'
import { feathers, Feathers, getServiceOptions, Id, version } from '../src'
import { feathers, Feathers, getServiceOptions, Id, version } from '../src/index'

describe('Feathers application', () => {
it('initializes', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/feathers/test/declarations.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert'
import { hooks } from '@feathersjs/hooks'
import { feathers, ServiceInterface, Application, HookContext, NextFunction } from '../src'
import { feathers, ServiceInterface, Application, HookContext, NextFunction } from '../src/index'

interface Todo {
id: number
Expand Down
2 changes: 1 addition & 1 deletion packages/feathers/test/events.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from 'assert'
import { EventEmitter } from 'events'

import { feathers } from '../src'
import { feathers } from '../src/index'

describe('Service events', () => {
it('app is an event emitter', (done) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/feathers/test/hooks/after.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert'
import { feathers, Id } from '../../src'
import { feathers, Id } from '../../src/index'

describe('`after` hooks', () => {
it('.after hooks can return a promise', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/feathers/test/hooks/app.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert'

import { feathers, Application, ApplicationHookMap, ServiceInterface, Params } from '../../src'
import { feathers, Application, ApplicationHookMap, ServiceInterface, Params } from '../../src/index'

type Todo = {
id?: string
Expand Down
2 changes: 1 addition & 1 deletion packages/feathers/test/hooks/around.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert'
import { feathers, Params, ServiceInterface } from '../../src'
import { feathers, Params, ServiceInterface } from '../../src/index'

describe('`around` hooks', () => {
it('around hooks can set hook.result which will skip service method', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/feathers/test/hooks/before.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert'
import { feathers, Params, ServiceInterface } from '../../src'
import { feathers, Params, ServiceInterface } from '../../src/index'

describe('`before` hooks', () => {
it('.before hooks can return a promise', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/feathers/test/hooks/error.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert'
import { feathers, Application, FeathersService } from '../../src'
import { feathers, Application, FeathersService } from '../../src/index'

describe('`error` hooks', () => {
describe('on direct service method errors', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/feathers/test/hooks/hooks.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert'
import { hooks, NextFunction } from '@feathersjs/hooks'
import { HookContext, createContext, feathers, Id, Params, ServiceInterface } from '../../src'
import { HookContext, createContext, feathers, Id, Params, ServiceInterface } from '../../src/index'

describe('hooks basics', () => {
it('mix @feathersjs/hooks and .hooks', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/knex/test/error-handler.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert'
import { errorHandler } from '../src'
import { errorHandler } from '../src/index'

describe('Knex Error handler', () => {
it('sqlState', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/knex/test/overrides.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import knex from 'knex'
import assert from 'assert'
import { feathers, Paginated } from '@feathersjs/feathers'
import { KnexAdapterParams, KnexService, transaction } from '../src'
import { KnexAdapterParams, KnexService, transaction } from '../src/index'
import { PaginationOptions } from '@feathersjs/adapter-commons'

// const { transaction } = service.hooks
Expand Down
2 changes: 1 addition & 1 deletion packages/koa/test/app.fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { feathers, Params, HookContext } from '@feathersjs/feathers'
import { authenticate, AuthenticationService, JWTStrategy } from '@feathersjs/authentication'
import { LocalStrategy, hooks } from '@feathersjs/authentication-local'

import { koa, rest, bodyParser, errorHandler, cors } from '../src'
import { koa, rest, bodyParser, errorHandler, cors } from '../src/index'

const { protect, hashPassword } = hooks
const app = koa(feathers())
Expand Down
2 changes: 1 addition & 1 deletion packages/koa/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Koa from 'koa'
import axios from 'axios'
import { ApplicationHookMap, feathers, Id } from '@feathersjs/feathers'
import { Service, restTests } from '@feathersjs/tests'
import { koa, rest, Application, bodyParser, errorHandler } from '../src'
import { koa, rest, Application, bodyParser, errorHandler } from '../src/index'

describe('@feathersjs/koa', () => {
let app: Application
Expand Down
2 changes: 1 addition & 1 deletion packages/memory/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import adapterTests from '@feathersjs/adapter-tests'
import errors from '@feathersjs/errors'
import { feathers } from '@feathersjs/feathers'

import { MemoryService } from '../src'
import { MemoryService } from '../src/index'

const testSuite = adapterTests([
'.options',
Expand Down
2 changes: 1 addition & 1 deletion packages/mongodb/test/converters.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Ajv } from '@feathersjs/schema'
import assert from 'assert'
import { ObjectId } from 'mongodb'
import { keywordObjectId, resolveObjectId, resolveQueryObjectId } from '../src'
import { keywordObjectId, resolveObjectId, resolveQueryObjectId } from '../src/index'

describe('ObjectId resolvers', () => {
it('resolveObjectId', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mongodb/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MongoMemoryServer } from 'mongodb-memory-server'
import { Ajv, FromSchema, getValidator, hooks, querySyntax } from '@feathersjs/schema'
import { feathers } from '@feathersjs/feathers'
import errors from '@feathersjs/errors'
import { MongoDBService, AdapterId } from '../src'
import { MongoDBService, AdapterId } from '../src/index'

const testSuite = adapterTests([
'.options',
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-client/test/axios.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { clientTests } from '@feathersjs/tests'
import { NotAcceptable } from '@feathersjs/errors'

import createServer from './server'
import rest from '../src'
import rest from '../src/index'
import { ServiceTypes } from './declarations'

describe('Axios REST connector', function () {
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-client/test/declarations.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CustomMethod } from '@feathersjs/feathers'
import { RestService } from '../src'
import { RestService } from '../src/index'

type Data = { message: string }
type Result = {
Expand Down
Loading