@adonisjs/fold
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -21,2 +21,6 @@ /// <reference types="node" /> | ||
use<T extends any = any>(name: string, relativeFrom?: string): T; | ||
useEsm<T extends any = any>(name: string, relativeFrom?: string): { | ||
default: T; | ||
__esModule: true; | ||
}; | ||
make<T extends any = any>(name: string, relativeFrom?: string): T; | ||
@@ -23,0 +27,0 @@ useFake<T extends any = any>(name: string): T; |
@@ -37,2 +37,6 @@ import { IocContract, BindCallback } from '../Contracts'; | ||
use<T extends any = any>(namespace: string, relativeFrom?: string): T; | ||
useEsm<T extends any = any>(namespace: string, relativeFrom?: string): { | ||
default: T; | ||
__esModule: true; | ||
}; | ||
make<T extends any = any>(namespace: any, relativeFrom?: string): T; | ||
@@ -39,0 +43,0 @@ useFake<T extends any = any>(namespace: string): T; |
@@ -189,2 +189,8 @@ "use strict"; | ||
} | ||
useEsm(namespace, relativeFrom) { | ||
return { | ||
default: this.use(namespace, relativeFrom), | ||
__esModule: true, | ||
}; | ||
} | ||
make(namespace, relativeFrom) { | ||
@@ -191,0 +197,0 @@ const value = this._resolveAndMake(namespace, relativeFrom); |
{ | ||
"name": "@adonisjs/fold", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Dependency manager and ioc container for your next NodeJs application", | ||
@@ -49,3 +49,3 @@ "scripts": { | ||
"reflect-metadata": "^0.1.13", | ||
"ts-node": "^8.1.0", | ||
"ts-node": "^8.2.0", | ||
"tslint": "^5.16.0", | ||
@@ -52,0 +52,0 @@ "tslint-eslint-rules": "^5.4.0", |
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
40985
585