@furystack/core
Advanced tools
Comparing version 1.0.6 to 1.0.9
@@ -28,1 +28,2 @@ /// <reference types="node" /> | ||
} | ||
//# sourceMappingURL=FileStore.d.ts.map |
@@ -16,1 +16,2 @@ import { Injector } from "@furystack/inject"; | ||
} | ||
//# sourceMappingURL=FuryStack.d.ts.map |
@@ -14,3 +14,2 @@ "use strict"; | ||
this.injector = new inject_1.Injector({ parent: this.options.injectorParent, owner: this }); | ||
this.injector.SetInstance(this.injector); | ||
this.logger = this.injector.GetInstance(LoggerCollection_1.LoggerCollection); | ||
@@ -17,0 +16,0 @@ this.apis = Array.from(this.options.apis).map((api) => this.injector.GetInstance(api)); |
@@ -1,2 +0,1 @@ | ||
export * from "./SystemPermissions"; | ||
export * from "./SystemRoles"; | ||
@@ -8,1 +7,3 @@ export * from "./Loggers"; | ||
export * from "./InMemoryStore"; | ||
export * from "./UserContext"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,3 +6,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./SystemPermissions")); | ||
__export(require("./SystemRoles")); | ||
@@ -14,2 +13,3 @@ __export(require("./Loggers")); | ||
__export(require("./InMemoryStore")); | ||
__export(require("./UserContext")); | ||
//# sourceMappingURL=index.js.map |
@@ -17,1 +17,2 @@ import { LoggerCollection } from "./Loggers"; | ||
} | ||
//# sourceMappingURL=InMemoryStore.d.ts.map |
@@ -17,1 +17,2 @@ import { ILeveledLogEntry, ILogEntry } from "../Models/ILogEntries"; | ||
} | ||
//# sourceMappingURL=AbstractLogger.d.ts.map |
@@ -27,1 +27,2 @@ import { ILoggerOptions } from "../Models"; | ||
} | ||
//# sourceMappingURL=ConsoleLogger.d.ts.map |
@@ -5,1 +5,2 @@ export * from "./AbstractLogger"; | ||
export * from "./LoggerCollection"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -9,1 +9,2 @@ import { ILeveledLogEntry } from "../Models/ILogEntries"; | ||
} | ||
//# sourceMappingURL=LoggerCollection.d.ts.map |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const inject_1 = require("@furystack/inject"); | ||
const AbstractLogger_1 = require("./AbstractLogger"); | ||
class LoggerCollection extends AbstractLogger_1.AbstractLogger { | ||
let LoggerCollection = class LoggerCollection extends AbstractLogger_1.AbstractLogger { | ||
constructor() { | ||
@@ -16,4 +23,7 @@ super(...arguments); | ||
} | ||
} | ||
}; | ||
LoggerCollection = __decorate([ | ||
inject_1.Injectable() | ||
], LoggerCollection); | ||
exports.LoggerCollection = LoggerCollection; | ||
//# sourceMappingURL=LoggerCollection.js.map |
@@ -9,1 +9,2 @@ import { ILoggerOptions } from "../Models"; | ||
} | ||
//# sourceMappingURL=TestLogger.d.ts.map |
export interface IActivateable { | ||
activate: () => Promise<void>; | ||
} | ||
//# sourceMappingURL=IActivateable.d.ts.map |
@@ -5,1 +5,2 @@ import { IDisposable } from "@sensenet/client-utils"; | ||
} | ||
//# sourceMappingURL=IApi.d.ts.map |
@@ -7,1 +7,2 @@ import { Constructable, Injector } from "@furystack/inject"; | ||
} | ||
//# sourceMappingURL=IFuryStackOptions.d.ts.map |
@@ -38,1 +38,2 @@ /** | ||
} | ||
//# sourceMappingURL=ILogEntries.d.ts.map |
@@ -15,1 +15,2 @@ import { ILeveledLogEntry, ILogEntry } from "./ILogEntries"; | ||
} | ||
//# sourceMappingURL=ILogger.d.ts.map |
@@ -1,2 +0,1 @@ | ||
export * from "./IAccessControlItem"; | ||
export * from "./IActivateable"; | ||
@@ -7,5 +6,5 @@ export * from "./IApi"; | ||
export * from "./ILogEntries"; | ||
export * from "./IPermissionType"; | ||
export * from "./IPhysicalStore"; | ||
export * from "./IRole"; | ||
export * from "./IUser"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -13,1 +13,2 @@ import { IDisposable } from "@sensenet/client-utils"; | ||
} | ||
//# sourceMappingURL=IPhysicalStore.d.ts.map |
@@ -6,1 +6,2 @@ export interface IRole { | ||
} | ||
//# sourceMappingURL=IRole.d.ts.map |
@@ -1,2 +0,1 @@ | ||
import { IAccessControlItem } from "./IAccessControlItem"; | ||
import { IRole } from "./IRole"; | ||
@@ -7,3 +6,3 @@ export declare const visitorUser: IUser; | ||
Roles: IRole[]; | ||
Permissions: IAccessControlItem[]; | ||
} | ||
//# sourceMappingURL=IUser.d.ts.map |
@@ -7,4 +7,3 @@ "use strict"; | ||
Roles: [SystemRoles_1.SystemRoles.Visitors], | ||
Permissions: [], | ||
}; | ||
//# sourceMappingURL=IUser.js.map |
@@ -6,1 +6,2 @@ import { IRole } from "./Models/IRole"; | ||
} | ||
//# sourceMappingURL=SystemRoles.d.ts.map |
{ | ||
"name": "@furystack/core", | ||
"version": "1.0.6", | ||
"version": "1.0.9", | ||
"description": "Core FuryStack package", | ||
@@ -14,6 +14,6 @@ "main": "dist/index.js", | ||
"test": "jest", | ||
"prebuild": "tslint --project tsconfig.json", | ||
"lint": "tslint --project tsconfig.json", | ||
"clean": "rimraf dist && rimraf coverage", | ||
"build": "tsc -b", | ||
"prepublishOnly": "npm run test && npm run build", | ||
"prepublishOnly": "npm run build", | ||
"publish:development": "npm run build && npm t && npm run typedoc && npm publish --tag development", | ||
@@ -59,7 +59,7 @@ "typedoc": "typedoc --mode file --out documentation src --tsconfig tsconfig.json --theme c:/Users/%USERNAME%/AppData/Roaming/npm/node_modules/@sensenet/typedoc-theme/sn-theme" | ||
"dependencies": { | ||
"@furystack/inject": "^1.0.5", | ||
"@furystack/inject": "^1.0.8", | ||
"@sensenet/client-utils": "^1.2.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^23.3.9", | ||
"@types/jest": "^23.3.11", | ||
"jest": "^23.6.0", | ||
@@ -77,3 +77,3 @@ "rimraf": "^2.6.1", | ||
"typings": "./dist/index.d.ts", | ||
"gitHead": "d4c394442cdc67c7ba1ae87225c0181336454e70" | ||
"gitHead": "5f79804932864b40d04209df5a8c8ec514e329e5" | ||
} |
@@ -43,3 +43,2 @@ import { Injector } from "@furystack/inject"; | ||
this.injector = new Injector({parent: this.options.injectorParent, owner: this}); | ||
this.injector.SetInstance(this.injector); | ||
this.logger = this.injector.GetInstance(LoggerCollection); | ||
@@ -46,0 +45,0 @@ this.apis = Array.from(this.options.apis).map((api) => this.injector.GetInstance(api)); |
@@ -1,2 +0,1 @@ | ||
export * from "./SystemPermissions"; | ||
export * from "./SystemRoles"; | ||
@@ -8,1 +7,2 @@ export * from "./Loggers"; | ||
export * from "./InMemoryStore"; | ||
export * from "./UserContext"; |
@@ -0,1 +1,2 @@ | ||
import { Injectable } from "@furystack/inject"; | ||
import { ILeveledLogEntry } from "../Models/ILogEntries"; | ||
@@ -5,2 +6,3 @@ import { ILogger } from "../Models/ILogger"; | ||
@Injectable() | ||
export class LoggerCollection extends AbstractLogger { | ||
@@ -7,0 +9,0 @@ public async AddEntry<T>(entry: ILeveledLogEntry<T>): Promise<void> { |
@@ -1,2 +0,1 @@ | ||
export * from "./IAccessControlItem"; | ||
export * from "./IActivateable"; | ||
@@ -7,5 +6,4 @@ export * from "./IApi"; | ||
export * from "./ILogEntries"; | ||
export * from "./IPermissionType"; | ||
export * from "./IPhysicalStore"; | ||
export * from "./IRole"; | ||
export * from "./IUser"; |
import { SystemRoles } from "../SystemRoles"; | ||
import { IAccessControlItem } from "./IAccessControlItem"; | ||
import { IRole } from "./IRole"; | ||
@@ -8,3 +7,2 @@ | ||
Roles: [SystemRoles.Visitors], | ||
Permissions: [], | ||
}; | ||
@@ -15,3 +13,2 @@ | ||
Roles: IRole[]; | ||
Permissions: IAccessControlItem[]; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92939
112
1255
Updated@furystack/inject@^1.0.8