Comparing version 2.3.0 to 3.0.0-next.1576633301.e2031cecebc964478e3b40a7c8fd9fa2a21d5ebf
# History | ||
## v3.0.0 2019 December 18 | ||
- If you are using CommonJS, you must now do `require('oneday').default` | ||
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation) | ||
## v2.3.0 2019 December 10 | ||
@@ -4,0 +9,0 @@ |
107
package.json
{ | ||
"name": "oneday", | ||
"version": "2.3.0", | ||
"version": "3.0.0-next.1576633301.e2031cecebc964478e3b40a7c8fd9fa2a21d5ebf", | ||
"description": "The number of milliseconds in one day", | ||
@@ -8,5 +8,11 @@ "homepage": "https://github.com/bevry/oneday", | ||
"keywords": [ | ||
"1 day", | ||
"24 hours", | ||
"browser", | ||
"export-default", | ||
"milliseconds", | ||
"24 hours", | ||
"1 day" | ||
"module", | ||
"typed", | ||
"types", | ||
"typescript" | ||
], | ||
@@ -52,4 +58,3 @@ "badges": { | ||
"Dom Christie (domchristie.co.uk)", | ||
"Dominic Tarr (http://protozoa.nz)", | ||
"dependabot-preview[bot] (http://github.com/apps/dependabot-preview)" | ||
"Dominic Tarr (http://protozoa.nz)" | ||
], | ||
@@ -68,37 +73,70 @@ "bugs": { | ||
{ | ||
"description": "JSON", | ||
"description": "TypeScript source code with Import for modules", | ||
"directory": "source", | ||
"entry": "index.json", | ||
"entry": "index.ts", | ||
"tags": [ | ||
"json" | ||
"typescript", | ||
"import" | ||
], | ||
"engines": false | ||
}, | ||
{ | ||
"description": "TypeScript compiled against ESNext for web browsers with Import for modules", | ||
"directory": "edition-browsers", | ||
"entry": "index.js", | ||
"tags": [ | ||
"javascript", | ||
"import" | ||
], | ||
"engines": { | ||
"node": true, | ||
"browsers": true | ||
"node": false, | ||
"browsers": "defaults" | ||
} | ||
}, | ||
{ | ||
"description": "TypeScript compiled against ESNext for Node.js with Require for modules", | ||
"directory": "edition-esnext", | ||
"entry": "index.js", | ||
"tags": [ | ||
"javascript", | ||
"esnext", | ||
"require" | ||
], | ||
"engines": { | ||
"node": "8 || 10 || 12 || 13", | ||
"browsers": false | ||
} | ||
} | ||
], | ||
"types": "source/index.ts", | ||
"type": "commonjs", | ||
"main": "source/index.json", | ||
"browser": "source/index.json", | ||
"main": "edition-esnext/index.js", | ||
"browser": "edition-browsers/index.js", | ||
"module": "edition-browsers/index.js", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^2.12.0", | ||
"@typescript-eslint/parser": "^2.12.0", | ||
"assert-helpers": "^5.8.0", | ||
"eslint": "^6.7.2", | ||
"eslint-config-bevry": "^2.3.0", | ||
"eslint-config-prettier": "^6.7.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"kava": "^4.4.0", | ||
"projectz": "^1.15.0", | ||
"valid-directory": "^1.5.0" | ||
"prettier": "^1.19.1", | ||
"projectz": "^1.19.0", | ||
"surge": "^0.21.3", | ||
"typedoc": "^0.15.5", | ||
"typescript": "^3.7.3", | ||
"valid-directory": "^1.6.0", | ||
"valid-module": "^1.0.0" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"bevry" | ||
] | ||
}, | ||
"prettier": { | ||
"semi": false, | ||
"singleQuote": true | ||
}, | ||
"scripts": { | ||
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", | ||
"our:compile": "echo no need for this project", | ||
"our:compile": "npm run our:compile:edition-browsers && npm run our:compile:edition-esnext", | ||
"our:compile:edition-browsers": "tsc --module ESNext --target ESNext --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true", | ||
"our:compile:edition-esnext": "tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true", | ||
"our:deploy": "echo no need for this project", | ||
"our:meta": "npm run our:meta:projectz", | ||
"our:meta": "npm run our:meta:docs && npm run our:meta:projectz", | ||
"our:meta:docs": "npm run our:meta:docs:typedoc", | ||
"our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source", | ||
"our:meta:projectz": "projectz compile", | ||
@@ -114,6 +152,19 @@ "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push", | ||
"our:test": "npm run our:verify && npm test", | ||
"our:verify": "npm run our:verify:directory", | ||
"our:verify:directory": "npx valid-directory", | ||
"test": "node ./source/test.js" | ||
"our:verify": "npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript", | ||
"our:verify:directory": "valid-directory", | ||
"our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source", | ||
"our:verify:module": "valid-module", | ||
"our:verify:prettier": "prettier --write ./source/**", | ||
"our:verify:typescript": "tsc --noEmit --project tsconfig.json", | ||
"test": "node ./edition-esnext/test.js" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"bevry" | ||
] | ||
}, | ||
"prettier": { | ||
"semi": false, | ||
"singleQuote": true | ||
} | ||
} |
@@ -36,2 +36,13 @@ <!-- TITLE/ --> | ||
## Usage | ||
```javascript | ||
import oneday from 'oneday' | ||
setInterval(function() { | ||
console.log('this occurred 24 hours later') | ||
}, oneday) | ||
``` | ||
<!-- INSTALL/ --> | ||
@@ -44,5 +55,22 @@ | ||
<li>Install: <code>npm install --save oneday</code></li> | ||
<li>Require: <code>require('oneday')</code></li> | ||
<li>Import: <code>import pkg from ('oneday')</code></li> | ||
<li>Require: <code>const pkg = require('oneday').default</code></li> | ||
</ul> | ||
<a href="https://www.pika.dev/cdn" title="100% Native ES Modules CDN"><h3>pika</h3></a> | ||
``` html | ||
<script type="module"> | ||
import pkg from '//cdn.pika.dev/oneday/^3.0.0' | ||
</script> | ||
``` | ||
<a href="https://unpkg.com" title="unpkg is a fast, global content delivery network for everything on npm"><h3>unpkg</h3></a> | ||
``` html | ||
<script type="module"> | ||
import pkg from '//unpkg.com/oneday@^3.0.0' | ||
</script> | ||
``` | ||
<a href="https://jspm.io" title="Native ES Modules CDN"><h3>jspm</h3></a> | ||
@@ -52,3 +80,3 @@ | ||
<script type="module"> | ||
import * as pkg from '//dev.jspm.io/oneday' | ||
import pkg from '//dev.jspm.io/oneday@3.0.0' | ||
</script> | ||
@@ -61,4 +89,6 @@ ``` | ||
<ul><li><code>oneday</code> aliases <code>oneday/source/index.json</code></li> | ||
<li><code>oneday/source/index.json</code> is JSON</li></ul> | ||
<ul><li><code>oneday/source/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>oneday/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>oneday</code> aliases <code>oneday/edition-esnext/index.js</code></li> | ||
<li><code>oneday/edition-esnext/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li></ul> | ||
@@ -68,10 +98,2 @@ <!-- /INSTALL --> | ||
## Usage | ||
``` javascript | ||
setInterval(function () { | ||
console.log('this occurred 24 hours later') | ||
}, require('oneday')) | ||
``` | ||
<!-- HISTORY/ --> | ||
@@ -78,0 +100,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
20491
9
19
163
0
15
1