react-paginate
Advanced tools
Comparing version 0.1.27 to 0.1.28
/** @jsx React.DOM */ | ||
jest.dontMock('./../react_components/index.js'); | ||
jest.dontMock('./../react_components/PaginationBoxView.jsx'); | ||
jest.dontMock('./../react_components/PaginationListView.jsx'); | ||
jest.dontMock('./../react_components/PageView.jsx'); | ||
jest.dontMock('./../react_components/react-paginate'); | ||
jest.dontMock('./../react_components/PaginationBoxView'); | ||
jest.dontMock('./../react_components/PaginationListView'); | ||
jest.dontMock('./../react_components/PageView'); | ||
var React = require('react/addons'); | ||
var PaginationBoxView = require('./../react_components/PaginationBoxView.jsx'); | ||
var PaginationListView = require('./../react_components/PaginationListView.jsx'); | ||
var PageView = require('./../react_components/PageView.jsx'); | ||
var PaginationBoxView = require('./../react_components/PaginationBoxView'); | ||
var PaginationListView = require('./../react_components/PaginationListView'); | ||
var PageView = require('./../react_components/PageView'); | ||
var TestUtils = React.addons.TestUtils; | ||
@@ -12,0 +12,0 @@ |
@@ -13,2 +13,4 @@ 'use strict'; | ||
var nodemon = require('gulp-nodemon'); | ||
var concat = require('gulp-concat'); | ||
var babel = require('gulp-babel'); | ||
@@ -46,16 +48,6 @@ var CONFIG = { | ||
gulp.task('watch', function() { | ||
gulp.watch('./react_components/*.jsx', ['app', 'sample']); | ||
gulp.watch('./react_components/*.js', ['dist', 'sample']); | ||
gulp.watch('./sample/sample.jsx', ['sample']); | ||
}); | ||
gulp.task('app', function() { | ||
return browserify('./react_components/index.js') | ||
.transform(reactify) | ||
.bundle() | ||
.pipe(source('react-paginate.js')) | ||
.pipe(buffer()) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('./build')); | ||
}); | ||
gulp.task('sample', function() { | ||
@@ -70,2 +62,8 @@ return browserify('./sample/sample.jsx') | ||
gulp.task('dist', function() { | ||
return gulp.src('./react_components/*.js') | ||
.pipe(babel()) | ||
.pipe(gulp.dest('./dist/')); | ||
}); | ||
gulp.task('server:watch', function () { | ||
@@ -77,7 +75,7 @@ nodemon({script: 'server.js'}) | ||
gulp.task('server:reload', function() { | ||
gulp.watch('./react_components/*.jsx', ['app', 'sample']); | ||
gulp.watch('./react_components/*.js', ['dist', 'sample']); | ||
gulp.watch('./sample/sample.jsx', ['sample']); | ||
}); | ||
gulp.task('serve', ['app', 'sample', 'generate:data', 'server:watch']); | ||
gulp.task('default', ['app', 'sample']); | ||
gulp.task('serve', ['dist', 'sample', 'generate:data', 'server:watch']); | ||
gulp.task('default', ['dist', 'sample']); |
{ | ||
"name": "react-paginate", | ||
"version": "0.1.27", | ||
"version": "0.1.28", | ||
"description": "A ReactJS component that creates a pagination.", | ||
"main": "./react_components/index.js", | ||
"main": "./dist/react-paginate.js", | ||
"repository": { | ||
@@ -31,2 +31,4 @@ "type": "git", | ||
"gulp": "~3.8.8", | ||
"gulp-babel": "^5.1.0", | ||
"gulp-concat": "^2.5.2", | ||
"gulp-nodemon": "^1.0.5", | ||
@@ -33,0 +35,0 @@ "gulp-uglify": "^1.1.0", |
@@ -5,3 +5,3 @@ /** @jsx React.DOM */ | ||
var React = require('react'); | ||
var ReactPaginate = require('./../react_components'); | ||
var ReactPaginate = require('./../react_components/react-paginate'); | ||
var $ = require('jquery'); | ||
@@ -8,0 +8,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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
25
2
4
42750
16
603