Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "drange", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "For adding, subtracting, and indexing discontinuous ranges of numbers", | ||
@@ -12,6 +12,8 @@ "keywords": [ | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"types/index.d.ts" | ||
], | ||
"scripts": { | ||
"test": "istanbul cover node_modules/.bin/_mocha -- test/*-test.js" | ||
"test": "istanbul cover node_modules/.bin/_mocha -- test/*-test.js", | ||
"dtslint": "dtslint types" | ||
}, | ||
@@ -33,3 +35,4 @@ "repository": { | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"types": "./types" | ||
} |
@@ -31,3 +31,3 @@ # drange | ||
###DRange#add(drange) | ||
### DRange#add(drange) | ||
Adds all of another DRange's subranges | ||
@@ -70,1 +70,15 @@ | ||
npm test | ||
# Integration with TypeScript | ||
DRange includes TypeScript definitions. | ||
```typescript | ||
import * as DRange from "drange"; | ||
const range: DRange = new Drange(2, 5); | ||
``` | ||
Use dtslint to check the definition file. | ||
npm install -g dtslint | ||
npm run dtslint |
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
9340
5
187
83
0