anim-event
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -1,2 +0,2 @@ | ||
/*! AnimEvent v1.0.7 (c) anseki https://github.com/anseki/anim-event */ | ||
/*! AnimEvent v1.0.8 (c) anseki https://github.com/anseki/anim-event */ | ||
var AnimEvent=function(n){function e(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return n[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var t={};return e.m=n,e.c=t,e.d=function(n,t,o){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:o})},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},e.p="",e(e.s=0)}([function(n,e,t){"use strict";function o(){var n=void 0,e=void 0;c&&(l.call(window,c),c=null),u.forEach(function(e){e.event&&(e.listener(e.event),e.event=null,n=!0)}),n?(w=Date.now(),e=!0):Date.now()-w<r&&(e=!0),e&&(c=a.call(window,o))}function i(n){var e=-1;return u.some(function(t,o){return t.listener===n&&(e=o,!0)}),e}Object.defineProperty(e,"__esModule",{value:!0});var r=500,u=[],a=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return setTimeout(n,1e3/60)},l=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(n){return clearTimeout(n)},c=void 0,w=Date.now(),d={add:function(n){var e=void 0;return-1===i(n)?(u.push(e={listener:n}),function(n){e.event=n,c||o()}):null},remove:function(n){var e=void 0;(e=i(n))>-1&&(u.splice(e,1),!u.length&&c&&(l.call(window,c),c=null))}};e.default=d,n.exports=e.default}]); |
{ | ||
"name": "anim-event", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Event Manager for Animation", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "anim-event", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"title": "AnimEvent", | ||
@@ -5,0 +5,0 @@ "description": "Event Manager for Animation", |
@@ -13,2 +13,4 @@ /* eslint-env node, es6 */ | ||
RULES = require('./webpack.config.rules.js'), | ||
BUILD = process.env.NODE_ENV === 'production', | ||
@@ -19,12 +21,4 @@ | ||
BUILD_PATH = BUILD ? __dirname : path.resolve(__dirname, 'test'), | ||
BUILD_FILE = `${BASE_NAME}${BUILD ? '.min' : ''}.js`, | ||
BUILD_FILE = `${BASE_NAME}${BUILD ? '.min' : ''}.js`; | ||
BABEL_RULE = { | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['es2015'], | ||
plugins: ['add-module-exports'] | ||
} | ||
}; | ||
module.exports = { | ||
@@ -38,16 +32,3 @@ entry: ENTRY_PATH, | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.js$/, | ||
use: [ | ||
BABEL_RULE, | ||
BUILD ? { | ||
loader: 'pre-proc-loader', | ||
options: {removeTag: {tag: 'DEBUG', pathTest: SRC_PATH}} | ||
} : null | ||
].filter(loader => !!loader) | ||
} | ||
] | ||
}, | ||
module: {rules: RULES}, | ||
devtool: BUILD ? false : 'source-map', | ||
@@ -54,0 +35,0 @@ plugins: BUILD ? [ |
25950
14
385
2