magic-grid
Advanced tools
Comparing version 3.3.4 to 3.3.5
{ | ||
"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": { |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68919
1572