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

magic-grid

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic-grid - npm Package Compare versions

Comparing version 3.3.4 to 3.3.5

5

package.json
{
"name": "magic-grid",
"version": "3.3.4",
"version": "3.3.5",
"description": "Super lightweight javascript library for dynamic grid layouts.",
"main": "dist/magic-grid.cjs.js",
"module": "dist/magic-grid.esm.js",
"main": "src/index.js",
"browser": "dist/magic-grid.min.js",

@@ -8,0 +7,0 @@ "scripts": {

23

rollup.config.js

@@ -1,7 +0,8 @@

import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import babel from "@rollup/plugin-babel";
import terser from "@rollup/plugin-terser";
import pkg from "./package.json" assert { type: "json" };
const resolve = require("@rollup/plugin-node-resolve");
const commonjs = require("@rollup/plugin-commonjs");
const babel = require("@rollup/plugin-babel");
const terser = require("@rollup/plugin-terser");
const pkg = require("./package.json");
export default [{

@@ -23,14 +24,2 @@ input: "src/index.js",

]
}, {
input: "src/index.js",
output: [
{ file: pkg.main, format: "cjs" },
{ file: pkg.module, format: "es" }
],
plugins: [
babel({
exclude: "node_modules/**",
babelHelpers: "bundled"
})
]
}];
import Listener from "./Listener.js";
const Listener = require("./Listener.js");
class EventEmitter {

@@ -4,0 +5,0 @@ /*

@@ -10,5 +10,5 @@ /**

import EventEmitter from "./EventEmitter.js";
import { checkParams, getMin } from "./utils.js";
import {POSITIONING_COMPLETE_EVENT, REPOSITIONING_DELAY} from "./constant.js";
const EventEmitter = require("./EventEmitter.js");
const {checkParams, getMin} = require("./utils.js");
const {POSITIONING_COMPLETE_EVENT, REPOSITIONING_DELAY} = require("./constant.js");

@@ -15,0 +15,0 @@ class MagicGrid extends EventEmitter{

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

let magicGrid;
function addItems(numItems=10) {
function addItems(numItems= 10) {
const container = document.querySelector(".container");

@@ -18,6 +16,6 @@ const items = container.children;

magicGrid.positionItems();
}
function removeItems(numItems=10) {
function removeItems(numItems = 10) {
const container = document.querySelector(".container");

@@ -33,4 +31,4 @@ const items = container.children;

}
magicGrid.positionItems();
}

Sorry, the diff of this file is not supported yet

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