Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rwu823 committed Dec 23, 2017
2 parents c56be29 + bd70efc commit fe59bdf
Show file tree
Hide file tree
Showing 6 changed files with 936 additions and 375 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<h1 align="center">
dad
</h1>
<p align="center">
<img width="128" src="./assets/logo.png" />
</p>

<p align="center">
<a href="https://github.com/17media/dad/releases">
<img src="https://img.shields.io/github/release/17media/dad.svg?style=flat-square&" />
Expand All @@ -21,7 +22,6 @@
## Why Use Dad
- Humans readable code
- Easy for testing
- Zero dependencies
- Works in Node and Browser

## Installation
Expand Down Expand Up @@ -64,8 +64,8 @@ Current works regions for event:

## Utils

## isToday([unixTimestamp])
Check unix timestamp whether same as Today, this is helpful for vote feature.
## isToday(ms)
Check ms timestamp whether same as Today, this is helpful for vote feature.

## now()
`now` is very useful for testing, you can feel free to hard-code current time.
Expand Down
Binary file added assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@17media/dad",
"version": "1.0.0",
"version": "1.0.1",
"repository": "https://github.com/17media/dad.git",
"author": "Rocky Wu <[email protected]>",
"main": "dist/dad.js",
Expand All @@ -17,13 +17,15 @@
"gulp-rename": "^1.2.2",
"gulp-size": "^2.1.0",
"gulp-uglify": "^3.0.0",
"jest": "^21.2.1",
"jest": "^22.0.4",
"pump": "^2.0.0",
"rollup": "^0.52.1",
"rollup-plugin-babel": "^3.0.2",
"rollup": "^0.53.0",
"rollup-plugin-babel": "^3.0.3",
"shelljs": "^0.7.8"
},
"dependencies": {},
"dependencies": {
"ienv": "^0.0.2"
},
"jest": {
"testEnvironment": "node",
"collectCoverageFrom": [
Expand Down
5 changes: 0 additions & 5 deletions src/utils/env.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/utils/qsParser.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { isNode } from './env';
import { global, isNode } from 'ienv';

const qsParser = (qstring = '') => {
const qsObj = {};
const qs = qstring || (
isNode
? process.argv.slice(2).join('&')
: global.location.search
: global.location.search.slice(1)
);

if (qs) {
Expand Down
Loading

0 comments on commit fe59bdf

Please sign in to comment.