Socket
Socket
Sign inDemoInstall

ng-hot-reload-loader

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-hot-reload-loader - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0-0

9

index.js
var template = require('lodash.template'),
fs = require('fs'),
path = require('path'),
loaderUtils = require('loader-utils'),
templatePath = path.join(__dirname, 'src', 'source.js.tpl'),

@@ -17,2 +18,3 @@ compiled = template(fs.readFileSync(templatePath, 'utf8')),

}
var options = loaderUtils.getOptions(this) || {};

@@ -26,3 +28,8 @@ if(noTransform.test(this.resourcePath)) {

source: source,
requireAngular: '(require("angular"), angular)',
requireAngular: typeof options.requireAngular === 'string' ?
options.requireAngular
: '(require("angular"), angular)',
// Boolean options that default to true.
forceRefresh: options.forceRefresh !== false,
preserveState: options.preserveState !== false,
});

@@ -29,0 +36,0 @@

5

package.json
{
"main": "index.js",
"name": "ng-hot-reload-loader",
"version": "1.0.1",
"version": "2.0.0-0",
"description": "Webpack hot loader for angularjs apps",

@@ -12,5 +12,6 @@ "scripts": {

"dependencies": {
"loader-utils": "^1.1.0",
"lodash.template": "^4.4.0",
"ng-hot-reload-core": "^1.0.1"
"ng-hot-reload-core": "^2.0.0-0"
}
}

Sorry, the diff of this file is not supported yet

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