Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-clock

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-clock - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

app.js

23

gulpfile.js
var gulp = require('gulp');
var rename = require('gulp-rename');
var browserify = require('browserify');
var babel = require('gulp-babel');
var source = require('vinyl-source-stream');

@@ -12,5 +14,24 @@ gulp.task('scripts', function () {

gulp.task('example', function() {
var entryFile = './jsx/clientApp.jsx';
var bundler = browserify({
extensions: ['.js', '.es6.js', '.jsx'],
transform: ['babelify']
});
bundler.add(entryFile);
var stream = bundler.bundle();
stream.on('error', function (err) { console.error(err.toString()) });
stream
.pipe(source(entryFile))
.pipe(rename('app.js'))
.pipe(gulp.dest(''));
});
gulp.task('watch', function() {
gulp.watch(['./jsx/**/*'], ['scripts']);
gulp.watch(['./jsx/**/*'], ['scripts', 'example']);
});
gulp.task('default', ['watch']);

2

index.js

@@ -1,4 +0,4 @@

var React = require('react');
'use strict';
var React = require('react');
var output;

@@ -5,0 +5,0 @@ var SetIntervalMixin = {

{
"name": "react-clock",
"version": "1.0.2",
"version": "1.0.3",
"description": "A React component to display the current time.",

@@ -30,5 +30,8 @@ "main": "index.js",

"devDependencies": {
"babelify": "^6.3.0",
"browserify": "^11.2.0",
"gulp": "^3.8.11",
"gulp-babel": "^5.2.1",
"gulp-rename": "^1.2.2"
"gulp-rename": "^1.2.2",
"vinyl-source-stream": "^1.1.0"
},

@@ -35,0 +38,0 @@ "dependencies": {

# React Clock [![npm version](https://badge.fury.io/js/react-clock.svg)](http://badge.fury.io/js/react-clock) [![Dependency Status](https://david-dm.org/ryanburgess/react-clock.svg)](https://david-dm.org/ryanburgess/react-clock)
A React clock component to display the current time.
[DEMO](http://htmlpreview.github.io/?https://github.com/ryanburgess/react-clock/master/index.html)
## Getting Started

@@ -16,3 +18,3 @@

var Clock = require('react-clock');
<Clock></Clock>
<Clock />
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc