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

baseframe-js

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baseframe-js - npm Package Compare versions

Comparing version 4.7.4 to 4.7.5

build/js/util/elem-data.d.ts

2

build/js/accessible-menu.js
import parseObjectFromString from './util/parse-object-from-string';
import $visible from './util/visible';
import elemData from "./util/elemData";
import elemData from "./util/elem-data";
import { KEYS } from './util/constants';

@@ -5,0 +5,0 @@ import $ from 'cash-dom';

@@ -5,3 +5,3 @@ import $ from 'cash-dom';

import { getHashParam } from './util/get-param';
import elemData from "./util/elemData";
import elemData from "./util/elem-data";
import updateHistoryState from './util/plugin/update-history-state';

@@ -8,0 +8,0 @@ import { noop, transitionElem } from './util/helpers';

import $ from 'cash-dom';
import parseObjectFromString from './util/parse-object-from-string';
import elemData from "./util/elemData";
import elemData from "./util/elem-data";
const VERSION = "2.0.2";

@@ -5,0 +5,0 @@ const DATA_NAME = 'EqualizeContent';

@@ -1,2 +0,2 @@

import installStoreToLibrary from './util/store';
import installStoreToLibrary from './util/install-store-to-library';
import libraryExtend from './util/library-extend';

@@ -3,0 +3,0 @@ import smoothScroll from './util/smooth-scroll';

//cash dom or jquery are a dependency
//not importing them because it can be either or
import installStoreToLibrary from './util/store';
import installStoreToLibrary from './util/install-store-to-library';
import libraryExtend from './util/library-extend';

@@ -5,0 +5,0 @@ import smoothScroll from './util/smooth-scroll';

import $ from 'cash-dom';
import parseObjectFromString from './util/parse-object-from-string';
import { isVisible } from './util/helpers';
import elemData from "./util/elemData";
import elemData from "./util/elem-data";
const VERSION = '2.0.1';

@@ -6,0 +6,0 @@ const DATA_NAME = 'LazyLoad';

import $ from 'cash-dom';
import parseObjectFromString from './util/parse-object-from-string';
import elemData from "./util/elemData";
import elemData from "./util/elem-data";
import trapFocus from './util/trap-focus';

@@ -5,0 +5,0 @@ import generateGUID from './util/guid-generate';

import $ from 'cash-dom';
import parseObjectFromString from './util/parse-object-from-string';
import elemData from "./util/elemData";
import elemData from "./util/elem-data";
const VERSION = "1.2.1";

@@ -5,0 +5,0 @@ const DATA_NAME = 'NavDesktop';

@@ -5,3 +5,3 @@ import $ from 'cash-dom';

import submenuBtn from './util/plugin/nav';
import elemData from "./util/elemData";
import elemData from "./util/elem-data";
import trapFocus from './util/trap-focus';

@@ -8,0 +8,0 @@ import { KEYS } from "./util/constants";

import $ from 'cash-dom';
import parseObjectFromString from './util/parse-object-from-string';
import elemData from "./util/elemData";
import elemData from "./util/elem-data";
const VERSION = "1.1.0";

@@ -5,0 +5,0 @@ const DATA_NAME = 'Parallax';

import $ from 'cash-dom';
import elemData from "./util/elemData";
import elemData from "./util/elem-data";
import parseObjectFromString from './util/parse-object-from-string';

@@ -4,0 +4,0 @@ import { KEYS } from "./util/constants";

@@ -5,3 +5,3 @@ import $ from 'cash-dom';

import updateHistoryState from './util/plugin/update-history-state';
import elemData from "./util/elemData";
import elemData from "./util/elem-data";
import { KEYS } from './util/constants';

@@ -8,0 +8,0 @@ const VERSION = "1.4.0";

import $ from 'cash-dom';
import elemData from './elemData';
import elemData from './elem-data';
import getType, { camelCase } from "./helpers";
import { setStoreFnInstalled } from "./store";
import { mapData, Store } from './store';
import Store, { mapData, setStoreFnInstalled } from './store';
function installStoreAsDataToLibrary(expose = false) {

@@ -7,0 +6,0 @@ if ('jQuery' in window) {

import $ from 'cash-dom';
import getType from './helpers';
import elemData from './elemData';
import elemData from './elem-data';
const checkIfParamsExist = (setParams, params, notify = true) => {

@@ -5,0 +5,0 @@ for (let k in params) {

@@ -7,14 +7,5 @@ declare type StoreElem = ArrayLike<HTMLElement> | HTMLElement;

}
export declare function store<T>(dataName: string, data?: T): void | T;
export declare function removeStore<T>(dataName: string): void;
declare module 'cash-dom' {
interface Cash {
store: typeof store;
removeStore: typeof removeStore;
}
interface CashStatic {
store: IStore;
}
}
declare const mapData: {
export declare let storeFnInstalled: boolean;
export declare const setStoreFnInstalled: () => boolean;
export declare const mapData: {
expose(what: boolean | 'ret'): void | WeakMap<object, any>;

@@ -30,6 +21,2 @@ set(_element: StoreElem, keyStore: string, data: any): void;

};
export declare let storeFnInstalled: boolean;
export declare const setStoreFnInstalled: () => boolean;
declare function installStoreToLibrary(expose?: boolean): void;
export default installStoreToLibrary;
export { mapData, Store };
export default Store;
import $ from 'cash-dom';
import elemData from './elemData';
const mapData = (() => {
export let storeFnInstalled = false;
export const setStoreFnInstalled = () => storeFnInstalled = true;
export const mapData = (() => {
const storeData = new WeakMap();

@@ -84,20 +85,19 @@ let id = 1;

// one state var to check if its installed the Store method
export let storeFnInstalled = false;
export const setStoreFnInstalled = () => storeFnInstalled = true;
function installStoreToLibrary(expose = false) {
storeFnInstalled = true;
if (expose) {
$.extend(Store, {
expose: (what) => mapData.expose(what)
});
}
$.extend({ store: Store });
$.fn.extend({ store: function (dataName, data) {
return elemData(this, dataName, data);
} });
$.fn.extend({ removeStore: function (dataName) {
Store.remove(this, dataName);
} });
}
export default installStoreToLibrary;
export { mapData, Store };
// export let storeFnInstalled = false;
// export const setStoreFnInstalled = () => storeFnInstalled = true;
// function installStoreToLibrary(expose = false) {
// storeFnInstalled = true;
// if (expose) {
// $.extend(Store, {
// expose:(what: boolean | "ret"): void | WeakMap<object,any> => mapData.expose(what)
// });
// }
// $.extend({ store: Store });
// $.fn.extend({store: function (dataName, data) {
// return elemData(this, dataName, data);
// }});
// $.fn.extend({removeStore: function (dataName) {
// Store.remove(this, dataName);
// }});
// }
export default Store;
{
"name": "baseframe-js",
"version": "4.7.4",
"version": "4.7.5",
"description": "A suite of useful Javascript plugins and functions to help with Front-end Development on websites",

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

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