UNPKG

resize-observer

Version:

An implementation and polyfill of the Resize Observer draft.

76 lines (75 loc) 2.19 kB
{ "name": "resize-observer", "version": "1.0.4", "description": "An implementation and polyfill of the Resize Observer draft.", "main": "lib/ResizeObserver.js", "unpkg": "dist/resize-observer.min.js", "typings": "lib/ResizeObserver.d.ts", "scripts": { "browserify:dev": "browserify lib/index.js -o dist/resize-observer.js", "browserify:prod": "browserify lib/index.js | uglifyjs -c --mangle --safari10 --ecma 5 -o dist/resize-observer.min.js", "build": "yarn clean && tsc && yarn browserify:dev && yarn browserify:prod", "clean": "rm -rf coverage dist lib", "coveralls": "yarn test-cov -- --report lcovonly && cat ./coverage/lcov.info | coveralls", "lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.js' && echo Lint passed.", "test": "yarn lint && yarn build && mocha", "test-cov": "istanbul cover _mocha", "prepack": "yarn test", "preversion": "yarn test" }, "repository": { "type": "git", "url": "git+https://github.com/pelotoncycle/resize-observer.git" }, "keywords": [ "ResizeObserver", "polyfill", "ponyfill", "element-resize" ], "author": "Mike Deverell <mike@onepeloton.com>", "license": "Apache-2.0", "bugs": { "url": "https://github.com/pelotoncycle/resize-observer/issues" }, "homepage": "https://github.com/pelotoncycle/resize-observer#readme", "browserify": { "standalone": "ResizeObserver", "transform": [ [ "babelify", { "presets": [ [ "env", { "targets": { "browsers": [ "last 3 versions" ] } } ] ] } ] ] }, "devDependencies": { "babel-core": "^6.26.0", "babel-preset-env": "^1.6.1", "babelify": "^8.0.0", "browserify": "^16.1.1", "chai": "^3.5.0", "coveralls": "^2.11.9", "istanbul": "^0.4.3", "jsdom": "^18.1.0", "mocha": "^2.5.3", "mocha-lcov-reporter": "^1.2.0", "mock-raf": "^1.0.0", "sinon": "^1.17.4", "tslint": "^5.11.0", "typescript": "^3.0.1", "uglify-es": "^3.3.9" } }