New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jymin

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jymin - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

src/numbers.js

4

package.json
{
"name": "jymin",
"title": "Jymin",
"description": "JavaScript library for DOM operations",
"version": "0.0.1",
"description": "Tiny JavaScript for a Big World",
"version": "0.0.2",
"main": "dist/jymin.js",

@@ -7,0 +7,0 @@ "homepage": "http://jymin.com",

/**
* Get the current location host.
*/
var getHost = function() {
var getHost = function () {
return location.host;

@@ -11,3 +11,3 @@ };

*/
var getBaseUrl = function() {
var getBaseUrl = function () {
return location.protocol + '//' + getHost();

@@ -19,5 +19,5 @@ };

*/
var getQueryParams = function(url) {
var getQueryParams = function (url) {
url = url || location.href;
var query = url.substr(url.indexOf('?') + 1);
var query = url.substr(url.indexOf('?') + 1).split('#')[0];
var pairs = query.split('&');

@@ -34,1 +34,8 @@ query = {};

/**
* Get the query parameters from the hash of a URL.
*/
var getHashParams = function (hash) {
hash = (hash || location.hash).replace(/^#/, '');
return hash ? getQueryParams(hash) : {};
};
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