🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@vtx/ol-map-mobile

Package Overview
Dependencies
Maintainers
6
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtx/ol-map-mobile - npm Package Compare versions

Comparing version
2.0.2
to
2.0.3
+10
-10
components/_util/encryptParams.js

@@ -10,3 +10,3 @@ import CryptoJS from 'crypto-js';

export const encrypt = (data, options) => {
let {key: AES_KEY, iv: IV, mode} = (options && typeof options === 'object') ? options : {};
let { key: AES_KEY, iv: IV, mode } = options && typeof options === 'object' ? options : {};
const key = CryptoJS.enc.Utf8.parse(AES_KEY || keyHex);

@@ -17,6 +17,6 @@ const iv = CryptoJS.enc.Utf8.parse(IV || ivHex);

iv,
mode: CryptoJS.mode[mode ||'CBC'],
padding: CryptoJS.pad.Pkcs7
}).toString()
}
mode: CryptoJS.mode[mode || 'CBC'],
padding: CryptoJS.pad.Pkcs7,
}).toString();
};

@@ -34,7 +34,7 @@ /**

delete params.cql_filter
delete params.cql_filter;
}
return params
}
return params;
};

@@ -54,5 +54,5 @@ /**

return params
}
return params;
};
export default encryptParams;

@@ -1,8 +0,15 @@

import qs from 'querystring';
const getUrlParam = (key, href = window.location.href) => {
const params = qs.parse(href.split('?')[1]);
return key ? params[key] : params;
const paramObj = {};
const matchList = href.match(/([^\?&]+)=([^\?&#]+)/g) || [];
for (let i = 0, len = matchList.length; i < len; i++) {
const r = matchList[i].match(/([^\?&]+)=([^\?&]+)/);
paramObj[r[1]] = decodeURIComponent(r[2]);
}
if (key) {
return paramObj[key];
} else {
return paramObj;
}
};
export default getUrlParam;
{
"name": "@vtx/ol-map-mobile",
"version": "2.0.2",
"version": "2.0.3",
"description": "uni-app组件库",

@@ -5,0 +5,0 @@ "scripts": {