@luminix/core 0.0.1-beta.7 → 0.0.1-beta.9
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/dist/contracts/Builder.d.ts +1 -1
- package/dist/contracts/Collection.d.ts +1 -1
- package/dist/core.js +353 -353
- package/dist/facades/App.d.ts +1 -1
- package/dist/facades/Model.d.ts +1 -1
- package/dist/mixins/HasEvents.d.ts +1 -1
- package/dist/types/Model.d.ts +2 -2
- package/package.json +3 -2
package/dist/facades/App.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ declare class App implements AppFacade {
|
|
|
26
26
|
}
|
|
27
27
|
declare const _default: {
|
|
28
28
|
new (...args: any[]): {
|
|
29
|
-
|
|
29
|
+
emitter: import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
|
|
30
30
|
"__#1@#createNanoEvents"(): import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
|
|
31
31
|
on<E extends keyof AppEvents>(event: E, callback: AppEvents[E]): Unsubscribe;
|
|
32
32
|
once<E_1 extends keyof AppEvents>(event: E_1, callback: AppEvents[E_1]): void;
|
package/dist/facades/Model.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ declare class ModelFacade implements ModelFacadeInterface {
|
|
|
30
30
|
}
|
|
31
31
|
declare const _default: {
|
|
32
32
|
new (...args: any[]): {
|
|
33
|
-
|
|
33
|
+
emitter: import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
|
|
34
34
|
"__#1@#createNanoEvents"(): import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
|
|
35
35
|
on<E extends keyof GlobalModelEvents>(event: E, callback: GlobalModelEvents[E]): Unsubscribe;
|
|
36
36
|
once<E_1 extends keyof GlobalModelEvents>(event: E_1, callback: GlobalModelEvents[E_1]): void;
|
|
@@ -5,7 +5,7 @@ import { Constructor } from '../types/Support';
|
|
|
5
5
|
export declare function isEventSource<T>(value: T): value is T & EventSource<any>;
|
|
6
6
|
export declare function HasEvents<T extends EventSourceEvents, U extends Constructor>(Base: U): {
|
|
7
7
|
new (...args: any[]): {
|
|
8
|
-
|
|
8
|
+
emitter: Emitter<EventSourceEvents>;
|
|
9
9
|
"__#1@#createNanoEvents"(): Emitter<EventSourceEvents>;
|
|
10
10
|
on<E extends keyof T>(event: E, callback: T[E]): import('nanoevents').Unsubscribe;
|
|
11
11
|
once<E_1 extends keyof T>(event: E_1, callback: T[E_1]): void;
|
package/dist/types/Model.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare class BaseModel implements EventSource<ModelEvents> {
|
|
|
45
45
|
setAttribute(key: string, value: unknown): void;
|
|
46
46
|
getKey(): string | number;
|
|
47
47
|
getKeyName(): string;
|
|
48
|
-
fill(attributes:
|
|
48
|
+
fill(attributes: object): void;
|
|
49
49
|
toJson(): JsonObject;
|
|
50
50
|
diff(): JsonObject;
|
|
51
51
|
getType(): string;
|
|
@@ -118,7 +118,7 @@ export interface ModelSchemaAttributes {
|
|
|
118
118
|
nullable: boolean;
|
|
119
119
|
phpType: string | null;
|
|
120
120
|
primary: boolean;
|
|
121
|
-
type: string;
|
|
121
|
+
type: string | null;
|
|
122
122
|
unique: boolean;
|
|
123
123
|
virtual: boolean;
|
|
124
124
|
}[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminix/core",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.9",
|
|
4
4
|
"description": "> Projeto em desenvolvimento",
|
|
5
5
|
"main": "dist/core.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"lint:fix": "eslint ./src ./tests --ext .ts --fix",
|
|
12
12
|
"test": "jest",
|
|
13
13
|
"test:coverage": "jest --coverage",
|
|
14
|
-
"ci": "npm run lint && npm run test"
|
|
14
|
+
"ci": "npm run lint && npm run test",
|
|
15
|
+
"publish:beta": "npm run build && npm publish --tag beta"
|
|
15
16
|
},
|
|
16
17
|
"author": "",
|
|
17
18
|
"license": "MIT",
|