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

@htmlguyllc/jpack

Package Overview
Dependencies
Maintainers
1
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@htmlguyllc/jpack - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

2

package.json
{
"name": "@htmlguyllc/jpack",
"version": "4.0.1",
"version": "4.0.2",
"description": "Core Javascript Library of Everyday Objects, Events, and Utilities",

@@ -5,0 +5,0 @@ "keywords": [

@@ -8,12 +8,12 @@ # jPack

--- | --- | --- | ---
navigation | object | yes | Grabs HTML from a URL and replaces content on the current page. Handles browser history, meta title swaps, and offers several callbacks
XHRForm | class | no | Adds an on-submit listener and sends the form values using XHR with callbacks for success/failure
FormFromURL (extends XHRForm) | class | no | Grabs a form from a URL and places it on the current page (examples/FormModalFromURL shows how to put the form in a modal) and then uses an XHR request to submit the form
request | object | yes | Provides a wrapper for window.location and easy querystring interaction
Site | class | no | A generic website class with properties for id, name, and config - useful for multi-tenant applications where you need to know which site is being viewed
User | class | no | A generic user class with properties for id, name, email, phone, etc - also allows for front-end permission checks
strings | object | yes | Contains methods for semi-common string manipulation like creating a getter from a string ('hi' = 'getHi')
data_types | object | yes | Validate the value of a variable with higher specificity than built-in functions. For instance, you can validate an object contains specific keys and throw errors if not, or if it contains keys that you didn't define
dom | object | yes | Has methods for converting just about anything into a native DOM Element or array of them (you can provide a string selector, jQuery object, native DOM object, etc). Also has some shortcuts for common DOM checks/manipulation (like removing an element, verifying an element exists in the DOM, or replacing an element with HTML)
events | object | yes | Includes shorthand methods for preventing the browser's default action onsubmit, onclick. Other methods are included for consistency like onchange (which does not prevent default since that is generally not preferred)
[navigation](#navigation) | object | yes | Grabs HTML from a URL and replaces content on the current page. Handles browser history, meta title swaps, and offers several callbacks
[XHRForm](#xhrform) | class | no | Adds an on-submit listener and sends the form values using XHR with callbacks for success/failure
[FormFromURL](#formfromurl) (extends XHRForm) | class | no | Grabs a form from a URL and places it on the current page (examples/FormModalFromURL shows how to put the form in a modal) and then uses an XHR request to submit the form
[request](#request) | object | yes | Provides a wrapper for window.location and easy querystring interaction
[Site](#site) | class | no | A generic website class with properties for id, name, and config - useful for multi-tenant applications where you need to know which site is being viewed
[User](#user) | class | no | A generic user class with properties for id, name, email, phone, etc - also allows for front-end permission checks
[strings](#strings) | object | yes | Contains methods for semi-common string manipulation like creating a getter from a string ('hi' = 'getHi')
[type_checks](#typechecks) | object | yes | Validate the value of a variable with higher specificity than built-in functions. For instance, you can validate an object contains specific keys and throw errors if not, or if it contains keys that you didn't define
[dom](#dom) | object | yes | Has methods for converting just about anything into a native DOM Element or array of them (you can provide a string selector, jQuery object, native DOM object, etc). Also has some shortcuts for common DOM checks/manipulation (like removing an element, verifying an element exists in the DOM, or replacing an element with HTML)
[events](#events) | object | yes | Includes shorthand methods for preventing the browser's default action onsubmit, onclick. Other methods are included for consistency like onchange (which does not prevent default since that is generally not preferred)

@@ -91,3 +91,4 @@ # Installation

### -Navigation
---
<h2 id="navigation">Navigation</h2>
_Grabs content from a URL and replaces it on the current page (along with browser history button handling, onload/unload handlers, and much more_

@@ -225,3 +226,4 @@

### -XHRForm
---
<h2 id="xhrform">XHRForm</h2>
_Submits a form using XHR_

@@ -279,3 +281,4 @@

### -FormFromURL
---
<h2 id="formfromurl">FormFromURL</h2>
_Allows you to pull a form from a URL and insert it into the current page very easily including optional XHR form submission!_

@@ -339,3 +342,4 @@

### -Request
---
<h2 id="request">Request</h2>
_Provides a wrapper for window.location and query string access_

@@ -366,3 +370,4 @@

### -Site
---
<h2 id="site">Site</h2>
_Designed for multi-tenant applications, this object stores a site's id, name, and config object._

@@ -421,3 +426,4 @@

### -User
---
<h2 id="user">User</h2>
_Designed for sites with user accounts/guest accounts. This class stores a user's details and allows for front-end permission checks._

@@ -498,3 +504,4 @@

### -Strings
---
<h2 id="strings">Strings</h2>
_Common string manipulations_

@@ -518,3 +525,4 @@

### -DOM
---
<h2 id="dom">DOM</h2>
_HTML DOM helpers_

@@ -549,3 +557,4 @@

### -Type Checks
---
<h2 id="typechecks">Type Checks</h2>
_Check the data type of a value with more specificity than typeof or vanilla JS functions_

@@ -572,3 +581,4 @@

### -Events
---
<h2 id="events">Events</h2>
_Shorthand event handlers_

@@ -575,0 +585,0 @@

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