Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/compiler

Package Overview
Dependencies
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/compiler - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

6

package.json

@@ -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');
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc