Comparing version 1.0.1 to 1.0.2
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global.potpack = factory()); | ||
}(this, (function () { 'use strict'; | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.potpack = factory()); | ||
})(this, (function () { 'use strict'; | ||
@@ -107,2 +107,2 @@ function potpack(boxes) { | ||
}))); | ||
})); |
{ | ||
"name": "potpack", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A tiny library for packing 2D rectangles (for sprite layouts)", | ||
@@ -9,9 +9,12 @@ "main": "index", | ||
"jsdelivr": "index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.mjs", | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"pretest": "eslint index.mjs", | ||
"test": "tape -r esm test.js", | ||
"pretest": "eslint index.mjs test.mjs bench.mjs", | ||
"test": "node -r esm test.mjs", | ||
"bench": "node -r esm bench.mjs", | ||
"build": "rollup -c", | ||
@@ -22,10 +25,3 @@ "start": "rollup -w", | ||
"eslintConfig": { | ||
"extends": "mourner", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"no-var": "error", | ||
"prefer-const": "error" | ||
} | ||
"extends": "mourner" | ||
}, | ||
@@ -50,9 +46,11 @@ "repository": { | ||
"devDependencies": { | ||
"eslint": "^5.4.0", | ||
"eslint-config-mourner": "^2.0.3", | ||
"esm": "^3.0.80", | ||
"rollup": "^0.64.1", | ||
"rollup-plugin-buble": "^0.19.2", | ||
"tape": "^4.9.1" | ||
"@mapbox/shelf-pack": "^3.2.0", | ||
"@rollup/plugin-buble": "^0.21.3", | ||
"bin-pack": "^1.0.2", | ||
"eslint": "^8.0.1", | ||
"eslint-config-mourner": "^3.0.0", | ||
"esm": "^3.2.25", | ||
"rollup": "^2.58.0", | ||
"tape": "^5.3.1" | ||
} | ||
} |
@@ -51,3 +51,3 @@ # potpack | ||
```html | ||
<script src="https://unpkg.com/potpack@1.0.0/index.js"></script> | ||
<script src="https://unpkg.com/potpack@1.0.1/index.js"></script> | ||
``` |
11008
6
201
8