browserify-ng-html2js
Advanced tools
Comparing version 1.1.2 to 1.1.3
# Changelog | ||
## 1.1.3 | ||
* Strip BOM from start of files | ||
## 1.1.2 | ||
* Generation of `require('angular')` is optional | ||
## 1.1.0 | ||
@@ -4,0 +12,0 @@ |
@@ -44,2 +44,3 @@ var fs = require('fs'), | ||
content = fs.readFileSync(file, 'utf-8'); | ||
content = content.replace(/^\ufeff/g, ''); | ||
src = ngHtml2Js(fileName, content, opts.module, 'ngModule') + '\nmodule.exports = ngModule;'; | ||
@@ -46,0 +47,0 @@ if (opts.requireAngular) { |
{ | ||
"name": "browserify-ng-html2js", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Browserify transform to compile angular templates into angular modules", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -119,2 +119,16 @@ var browserify = require('browserify'), | ||
}); | ||
it('should strip the BOM from the beginning of the file if it exists', function(done) { | ||
browserify(__dirname + '/fixtures/bom-template.html') | ||
.transform(ngHtml2Js()) | ||
.bundle(function(err, bundle) { | ||
if (err) { | ||
done(err) | ||
} else { | ||
expect(bundle.toString().match(/\ufeff/)).to.be.null; | ||
done(); | ||
}; | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16324
17
242