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

browserify-ng-html2js

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-ng-html2js - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

test/fixtures/bom-template.html

8

CHANGELOG.md
# 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 @@

1

lib/index.js

@@ -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) {

2

package.json
{
"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();
};
});
});
});
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