Comparing version 0.1.1 to 0.1.2
@@ -27,2 +27,4 @@ 'use strict'; | ||
var root = typeof window === 'undefined' ? global : window; | ||
var Stepper = function () { | ||
@@ -141,3 +143,3 @@ function Stepper() { | ||
_this.pastTime = pastTime; | ||
_this.rafId = window.requestAnimationFrame(stepping); | ||
_this.rafId = root.requestAnimationFrame(stepping); | ||
}; | ||
@@ -148,3 +150,3 @@ | ||
window.requestAnimationFrame(stepping); | ||
root.requestAnimationFrame(stepping); | ||
} | ||
@@ -151,0 +153,0 @@ }, { |
{ | ||
"name": "stepperjs", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A tiny requestAnimationFrame wrapper to improve usability.", | ||
@@ -33,4 +33,4 @@ "main": "dist/index.js", | ||
"babel-cli": "6.18.0", | ||
"babel-loader": "6.2.7", | ||
"babel-plugin-transform-class-properties": "6.18.0", | ||
"babel-loader": "6.2.10", | ||
"babel-plugin-transform-class-properties": "6.19.0", | ||
"babel-plugin-transform-es3-member-expression-literals": "6.8.0", | ||
@@ -41,3 +41,3 @@ "babel-plugin-transform-es3-property-literals": "6.8.0", | ||
"chai": "3.5.0", | ||
"gh-pages": "0.11.0", | ||
"gh-pages": "0.12.0", | ||
"html-webpack-plugin": "2.24.1", | ||
@@ -49,11 +49,14 @@ "isparta-loader": "2.0.0", | ||
"karma-coverage": "1.1.1", | ||
"karma-mocha": "1.2.0", | ||
"karma-firefox-launcher": "^1.0.0", | ||
"karma-mocha": "1.3.0", | ||
"karma-phantomjs-launcher": "^1.0.2", | ||
"karma-sinon": "1.0.5", | ||
"karma-sourcemap-loader": "0.3.7", | ||
"karma-spec-reporter": "0.0.26", | ||
"karma-webpack": "1.8.0", | ||
"mocha": "3.1.2", | ||
"karma-webpack": "1.8.1", | ||
"mocha": "3.2.0", | ||
"phantomjs-polyfill-find-index": "^1.0.1", | ||
"raf-stub": "^1.0.1", | ||
"sinon": "1.17.6", | ||
"webpack": "1.13.3", | ||
"webpack": "1.14.0", | ||
"webpack-dev-server": "1.16.2" | ||
@@ -60,0 +63,0 @@ }, |
# StepperJS | ||
[![Build Status](https://travis-ci.org/UYEONG/stepperjs.svg?branch=master)](https://travis-ci.org/UYEONG/stepperjs) | ||
[![codecov](https://codecov.io/gh/UYEONG/stepperjs/graph/badge.svg?token=Eg1MUAW9he)](https://codecov.io/gh/UYEONG/stepperjs) | ||
A tiny requestAnimationFrame wrapper to improve usability. - [Demo](https://uyeong.github.io/stepperjs/) | ||
@@ -40,3 +43,3 @@ | ||
```html | ||
<script type="text/javascript" src="stepperjs.browser-0.1.1.min.js"></script></head> | ||
<script type="text/javascript" src="stepperjs.browser-0.1.2.min.js"></script> | ||
``` | ||
@@ -43,0 +46,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
133771
1690
75
28