Socket
Socket
Sign inDemoInstall

nuke-core

Package Overview
Dependencies
Maintainers
3
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-core - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

4

index.js
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;

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