@luminix/core 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/core",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "description": "> Projeto em desenvolvimento",
5
5
  "module": "dist/core.js",
6
6
  "types": "types/index.d.ts",
@@ -1,8 +1,7 @@
1
- import { Collection } from '@luminix/support';
1
+ import { Collection, JsonObject } from '@luminix/support';
2
2
  import { default as Relation, RelationServices } from '../Relation';
3
3
  import { Model, ModelPaginatedResponse, RelationMetaData } from '../../types/Model';
4
4
  import { BuilderInterface as Builder } from '../../types/Builder';
5
- import { JsonObject } from '../../types/Support';
6
5
  type BuilderInterface = Builder<Model, ModelPaginatedResponse>;
7
6
  export default class BelongsToMany extends Relation {
8
7
  protected services: RelationServices;
@@ -1,6 +1,7 @@
1
1
  import { HasFacadeAccessor, Application, FacadeOf, MacroableInterface } from '@luminix/support';
2
2
  import { AppContainers, AppMacros } from '../types/App';
3
3
  declare class AppFacade implements HasFacadeAccessor {
4
+ protected app?: Application;
4
5
  getFacadeAccessor(): string | object;
5
6
  down(): void;
6
7
  }
package/types/index.d.ts CHANGED
@@ -15,8 +15,7 @@ import { default as Log } from './facades/Log';
15
15
  import { default as Model } from './facades/Model';
16
16
  import { default as Route } from './facades/Route';
17
17
  import { default as Plugin } from './contracts/Plugin';
18
- import { isModel } from './support/model';
19
- export { app, App, auth, Auth, collect, config, Config, error, Error, Http, log, Log, model, Model, route, Route, isValidationError, isModel, Plugin, };
18
+ export { app, App, auth, Auth, collect, config, Config, error, Error, Http, log, Log, model, Model, route, Route, isValidationError, Plugin, };
20
19
  export type { AppFacade, AppEvents, AppContainers } from './types/App';
21
20
  export type { AuthFacade } from './types/Auth';
22
21
  export type { BuilderInterface, Scope } from './types/Builder';
@@ -1,3 +0,0 @@
1
- import { Model } from '../types/Model';
2
- /** @deprecated */
3
- export declare function isModel(value: unknown): value is Model;