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.4 to 0.0.5

13

index.js

@@ -11,6 +11,7 @@ /*

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

@@ -65,3 +66,4 @@ module.exports = function (source) {

key: getTemplateId.apply(this),
val: resolveUrl(source)
val: resolveUrl(source),
i: result.length + 1
});

@@ -75,3 +77,4 @@ }

});
result.push('module.exports=v'+result.length+';');
return result.join('\n');
};
{
"name": "ng-cache-loader",
"version": "0.0.4",
"version": "0.0.5",
"description": "Puts HTML partials in the Angular's $templateCache.",

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

@@ -60,3 +60,3 @@ # Angular Template loader for webpack

<!-- markup outside script tags available as ng-include="'myPartial.html'" -->
<div>...</div>
<div ng-include="'myFirstTemplate'">...</div>

@@ -63,0 +63,0 @@ <script type ="text/ng-template" id="mySecondTemplate">

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