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

ng-cache-loader

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-cache-loader - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

6

index.js

@@ -12,3 +12,3 @@ /*

var stub = 'var v$i=$val;\n' +
'window.angular.module(["ng"])' +
'window.angular.module(["$mod"])' +
'.run(["$templateCache",function(c){' +

@@ -33,2 +33,4 @@ 'c.put("$key", v$i)' +

var mod = query.module || 'ng';
source = htmlMinifier.minify(source, {

@@ -55,2 +57,3 @@ removeComments: true,

result.push({
mod: mod,
key: scr.id,

@@ -68,2 +71,3 @@ val: resolveUrl(html),

result.push({
mod: mod,
key: getTemplateId.apply(this),

@@ -70,0 +74,0 @@ val: resolveUrl(source),

2

package.json
{
"name": "ng-cache-loader",
"version": "0.0.9",
"version": "0.0.10",
"description": "Puts HTML partials in the Angular's $templateCache.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -91,2 +91,11 @@ # Angular Template loader for webpack

## Module
By default, templates will be added to the default AngularJS 'ng' module run() method.
Use this parameter to use a different module name:
``` javascript
require('ng-cache?module=moduleName!./path/to/myPartial.html')
```
## webpack config

@@ -145,2 +154,2 @@

MIT (http://www.opensource.org/licenses/mit-license.php)
MIT (http://www.opensource.org/licenses/mit-license.php)
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