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

grunt-domman

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-domman - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

tasks/assets/cache.js

2

package.json
{
"name": "grunt-domman",
"version": "0.1.3",
"version": "0.1.4",
"description": "Grunt plugin for DOM manipulation",

@@ -5,0 +5,0 @@ "homepage": "http://gitlab.alibaba-inc.com/trip-tools/grunt-domman",

@@ -83,5 +83,11 @@ # grunt-domman

### 0.1.4
- [+] 更新 load.js 支持 js 脚本 onload 后加载
- [!] offline.js 支持 angular seed 替换
## License
Copyright (c) 2014 弘树. Licensed under the MIT license.

@@ -9,5 +9,7 @@ /**

var hasAngular = false;
$('script[src]').each(function(idx, scriptNode){
var src = scriptNode.attribs.src;
if(src.indexOf('base/qa-seed.js') != -1) {
if(/qa-seed(-angular)?\.js/i.test(src)) {
hasAngular = /angular/.test(src);
$(scriptNode).remove();

@@ -20,4 +22,4 @@ }

'<script>window._$isOffline$_=true;</script>' +
'<script src="../../widgets/base/qa-seed-wlog-tmsparser.js?nocombo=true"></script>')
'<script src="../../widgets/base/qa-seed' + (hasAngular ? '-angular' : '') + '-wlog-tmsparser.js?nocombo=true"></script>')
.append('<meta name="aplus-offline" content="1">');
};

@@ -42,3 +42,3 @@ /**

} else {
scriptNodeHTML = '<script src="' + proxyPage + '?callback=handle_tms_fragment&src='
scriptNodeHTML = '<tms style="display:none" id="tms_fragment_' + nodeIdx + '"></tms><script src="' + proxyPage + '?id=' + nodeIdx + '&charset=' + tmsCharset + '&callback=handle_tms_fragment&src='
+ tmsPureLink + '" charset="' + tmsCharset

@@ -45,0 +45,0 @@ + '"></script>';

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