@travetto/registry
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -7,3 +7,3 @@ { | ||
"dependencies": { | ||
"@travetto/compiler": "^0.1.3", | ||
"@travetto/compiler": "^0.1.4", | ||
"string-hash": "^1.1.3" | ||
@@ -28,3 +28,3 @@ }, | ||
"scripts": {}, | ||
"version": "0.1.3" | ||
"version": "0.1.4" | ||
} |
@@ -1,14 +0,25 @@ | ||
import { Registry, MethodSource, CompilerClassSource, RootRegistry } from '../src'; | ||
import * as assert from 'assert'; | ||
import { Suite, Test } from '@travetto/test'; | ||
import { Registry, MethodSource, RootRegistry } from '../src'; | ||
class Simple extends Registry { | ||
} | ||
export const SimpleRegistry = new Simple(); | ||
@Suite() | ||
export class RegistryTest { | ||
export const MethodListener = new MethodSource(RootRegistry); | ||
@Test() | ||
async reloadTest() { | ||
const SimpleRegistry = new Simple(); | ||
MethodListener.on(e => { | ||
console.log('Method changed', e); | ||
}); | ||
const MethodListener = new MethodSource(RootRegistry); | ||
console.log('hi'); | ||
MethodListener.on(e => { | ||
console.log('Method changed', e); | ||
}); | ||
console.log('hi'); | ||
} | ||
} |
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
19723
527
Updated@travetto/compiler@^0.1.4