Comparing version 7.1.1 to 7.2.0
@@ -6,3 +6,3 @@ /** | ||
* @example | ||
* import * as t from 'typical' | ||
* import t from 'typical' | ||
* const allDefined = array.every(t.isDefined) | ||
@@ -9,0 +9,0 @@ */ |
{ | ||
"name": "typical", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "7.1.1", | ||
"version": "7.2.0", | ||
"description": "Isomorphic, functional type-checking for Javascript", | ||
"repository": "https://github.com/75lb/typical", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/75lb/typical.git" | ||
}, | ||
"license": "MIT", | ||
"type": "module", | ||
"exports": "./index.js", | ||
"exports": { | ||
"import": "./index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"keywords": [ | ||
@@ -41,20 +47,12 @@ "type", | ||
"scripts": { | ||
"test": "npm run test:cli && npm run test:web", | ||
"test:cli": "test-runner test/*.js", | ||
"test:web": "web-runner test/test.js", | ||
"docs": "jsdoc2md -c jsdoc.conf -t README.hbs index.js > README.md", | ||
"cover": "c8 npm test && c8 report --reporter=text-lcov | coveralls" | ||
"test": "npm run dist && npm run test:ci", | ||
"test:ci": "75lb-nature test-runner test/*.js", | ||
"docs": "75lb-nature jsdoc2md -t README.hbs index.js > README.md", | ||
"dist": "75lb-nature cjs-build index.js" | ||
}, | ||
"devDependencies": { | ||
"@test-runner/web": "^0.4.4", | ||
"c8": "^7.8.0", | ||
"coveralls": "^3.1.1", | ||
"isomorphic-assert": "^1.0.0", | ||
"jsdoc-to-markdown": "^7.0.1", | ||
"rollup": "^2.56.2", | ||
"test-object-model": "^0.7.1" | ||
}, | ||
"devDependencies": {}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"dist" | ||
] | ||
} |
@@ -1,3 +0,1 @@ | ||
head | ||
[![view on npm](https://badgen.net/npm/v/typical)](https://www.npmjs.org/package/typical) | ||
@@ -8,4 +6,2 @@ [![npm module downloads](https://badgen.net/npm/dt/typical)](https://www.npmjs.org/package/typical) | ||
[![Node.js CI](https://github.com/75lb/typical/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/typical/actions/workflows/node.js.yml) | ||
[![Coverage Status](https://coveralls.io/repos/github/75lb/typical/badge.svg)](https://coveralls.io/github/75lb/typical) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard) | ||
@@ -20,3 +16,3 @@ | ||
```js | ||
import * as t from 'typical' | ||
import t from 'typical' | ||
const allDefined = array.every(t.isDefined) | ||
@@ -317,3 +313,3 @@ ``` | ||
```js | ||
import * as typical from 'typical' | ||
import t from 'typical' | ||
``` | ||
@@ -327,6 +323,12 @@ | ||
CommonJS: | ||
```js | ||
const { isNumber } = require('typical') | ||
``` | ||
Within a modern browser ECMAScript Module: | ||
```js | ||
import typical from './node_modules/typical/index.mjs' | ||
import typical from './node_modules/typical/index.js' | ||
``` | ||
@@ -336,4 +338,4 @@ | ||
© 2014-21 Lloyd Brookes \<75pound@gmail.com\>. | ||
© 2014-25 Lloyd Brookes \<75pound@gmail.com\>. | ||
Isomorphic test suite by [test-runner](https://github.com/test-runner-js/test-runner) and [web-runner](https://github.com/test-runner-js/web-runner). Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). | ||
Test suite by [test-runner](https://github.com/test-runner-js/test-runner). Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). |
Sorry, the diff of this file is not supported yet
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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
27175
0
6
582
337
0
0