nuke-core
Advanced tools
Comparing version 0.0.16 to 0.0.17
import urlHandler from './util/urlHandler'; | ||
import dimensions from './util/dimensions'; | ||
import env from './util/env'; | ||
import location from './util/location'; | ||
var Util = { | ||
urlHandler: urlHandler, | ||
env: env, | ||
Dimensions: dimensions | ||
Dimensions: dimensions, | ||
Location:location | ||
}; | ||
export default Util; |
{ | ||
"name": "nuke-core", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,6 +19,17 @@ // RegExp author cite: http://stackoverflow.com/a/11976301 | ||
} else { | ||
var base = location.host+location.pathname; | ||
url=url.replace('qap://','./'); | ||
var weurl=realpath(url); | ||
realurl=base+'?we='+weurl; | ||
var reg=new RegExp(/qap\:\/\/(.*)\.js/); | ||
var result=url.match(reg); | ||
if(result && result[1]){ | ||
var newBundle=realpath(result[1]); | ||
var patharr=location.pathname.split('/'); | ||
if(patharr && patharr[patharr.length-1]){ | ||
var p=patharr[patharr.length-1].match(/(.*)\.html/) | ||
if(p&&p[1]){ | ||
patharr[patharr.length-1]=patharr[patharr.length-1].replace(p[1],newBundle) | ||
} | ||
} | ||
var path=patharr.join('/'); | ||
realurl=location.protocol+'//'+location.host+path+location.search; | ||
} | ||
} | ||
@@ -25,0 +36,0 @@ return realurl; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
67893
173
0