@travetto/compiler
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -11,5 +11,5 @@ { | ||
"@types/source-map-support": "^0.4.0", | ||
"chokidar": "^2.0.2", | ||
"farmhash": "^2.0.5", | ||
"chokidar": "^2.0.3", | ||
"source-map-support": "^0.5.4", | ||
"string-hash": "^1.1.3", | ||
"tslib": "^1.9.0" | ||
@@ -25,3 +25,3 @@ }, | ||
"scripts": {}, | ||
"version": "0.0.15" | ||
"version": "0.0.16" | ||
} |
@@ -13,3 +13,3 @@ import * as fs from 'fs'; | ||
const Module = require('module'); | ||
const farmhash = require('farmhash'); | ||
const stringHash = require('string-hash'); | ||
@@ -240,3 +240,3 @@ const originalLoader = Module._load.bind(Module); | ||
// Let's see if they are really different | ||
const hash = farmhash.hash32(content); | ||
const hash = stringHash(content); | ||
if (hash === this.hashes.get(fileName)) { | ||
@@ -264,3 +264,3 @@ console.debug('File contents unchanged'); | ||
if (AppEnv.watch) { | ||
this.hashes.set(fileName, farmhash.hash32(content)); | ||
this.hashes.set(fileName, stringHash(content)); | ||
// If file is already loaded, mark for reload | ||
@@ -276,2 +276,3 @@ if (this.files.get(fileName)!.version > 0) { | ||
static watchFiles(fileNames: string[]) { | ||
// TODO: Replace with something that has fewer dependencies, to decrease overall footprint and load time | ||
const watcher = chokidar.watch(this.appWorkingSet, { | ||
@@ -278,0 +279,0 @@ ignored: this.invalidWorkingSetFile, |
require('@travetto/base/bootstrap').run() | ||
.then(x => require('./stack')); | ||
.then(x => { | ||
const Compiler = require('../src/compiler').Compiler; | ||
Compiler.on('added', require); | ||
Compiler.on('changed', require); | ||
require('./stack'); | ||
}); |
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
24707
669
+ Addedstring-hash@^1.1.3
+ Addedstring-hash@1.1.3(transitive)
- Removedfarmhash@^2.0.5
- Removedansi-regex@2.1.1(transitive)
- Removedaproba@1.2.0(transitive)
- Removedare-we-there-yet@1.1.7(transitive)
- Removedbl@1.2.3(transitive)
- Removedbuffer-alloc@1.2.0(transitive)
- Removedbuffer-alloc-unsafe@1.1.0(transitive)
- Removedbuffer-fill@1.0.0(transitive)
- Removedchownr@1.1.4(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removeddecompress-response@3.3.0(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddelegates@1.0.0(transitive)
- Removeddetect-libc@1.0.3(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexpand-template@1.1.1(transitive)
- Removedfarmhash@2.1.0(transitive)
- Removedfs-constants@1.0.0(transitive)
- Removedgauge@2.7.4(transitive)
- Removedgithub-from-package@0.0.0(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedini@1.3.8(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedmimic-response@1.0.1(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednode-abi@2.30.1(transitive)
- Removednoop-logger@0.1.1(transitive)
- Removednpmlog@4.1.2(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedprebuild-install@2.5.3(transitive)
- Removedpump@1.0.32.0.1(transitive)
- Removedrc@1.2.8(transitive)
- Removedsemver@5.7.2(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsimple-concat@1.0.1(transitive)
- Removedsimple-get@2.8.2(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedtar-fs@1.16.3(transitive)
- Removedtar-stream@1.6.2(transitive)
- Removedto-buffer@1.1.1(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedwhich-pm-runs@1.1.0(transitive)
- Removedwide-align@1.1.5(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)
Updatedchokidar@^2.0.3