New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-ng-templatecache

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-ng-templatecache - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

.travis.yml

24

lib/index.js

@@ -64,11 +64,14 @@ "use strict";

var pick = require("ramda").pick;
var glob = _interopRequire(require("glob"));
var pluck = require("ramda").pluck;
var createMapEntry = require("ramda").createMapEntry;
var readdirp = _interopRequire(require("readdirp"));
var readFileAsyncWith = flip(denodeify(fs.readFile));
var readdirAsync = denodeify(fs.readdir);
var readFileAsyncWith = flip(denodeify(fs.readFile));
var writeFileAsync = denodeify(fs.writeFile);
var globAsync = denodeify(glob);
var readdirpAsync = denodeify(readdirp);
var joinWith = flip(path.join);
var listFiles = compose(map(globAsync), map(joinWith("**/*")));
var pickOpts = pick(["module", "standalone", "prefix"]);
var listFiles = compose(readdirpAsync, createMapEntry("root"));
var readFiles = map(readFileAsyncWith({ encoding: "utf-8" }));
function toEntry(kvp) {

@@ -81,3 +84,2 @@ var _kvp = _slicedToArray(kvp, 2);

}
var pickOpts = pick(["module", "standalone"]);

@@ -97,8 +99,10 @@ var NgTemplatecache = (function (CachingWriter) {

var outputPath = path.join(destDir, this.outputFile);
var dirs = listFiles(srcPaths);
var dirs = map(listFiles, srcPaths);
var opts = pickOpts(this);
return Promise.all(dirs).then(flatten).then(function (files) {
var contents = map(readFileAsyncWith({ encoding: "utf-8" }), files);
return RSVP.hash(zipObj(files, contents));
return Promise.all(dirs).then(compose(flatten, pluck("files"), flatten)).then(function (files) {
var paths = pluck("path", files);
var fullPaths = pluck("fullPath", files);
var contents = readFiles(fullPaths);
return RSVP.hash(zipObj(paths, contents));
}).then(function (pathsToContents) {

@@ -105,0 +109,0 @@ var entries = map(toEntry, toPairs(pathsToContents));

{
"name": "broccoli-ng-templatecache",
"version": "0.1.3",
"version": "0.1.4",
"description": "Broccoli wrapper over ng-templatecache",

@@ -31,8 +31,8 @@ "main": "lib/index.js",

"broccoli": "^0.13.3",
"nodeunit": "^0.9.0"
"nodeunit": "^0.9.0",
"broccoli-static-compiler": "^0.2.1"
},
"dependencies": {
"broccoli-caching-writer": "^0.5.4",
"glob": "^4.3.5",
"ng-templatecache": "^0.1.3",
"ng-templatecache": "^0.1.4",
"ramda": "^0.8.0",

@@ -39,0 +39,0 @@ "readdirp": "^1.3.0",

@@ -25,2 +25,3 @@ # broccoli-ng-templatecache

- `module` (default: `"templates"`) generated module name. `false` means don't create a module
- `prefix` (default: `''`) Prefix to add to template paths
- `standalone` (default: `false`) if `true`, the module will be created as `angular.module('xxx', [])`
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