Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: euank/node-parse-numeric-range
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.0
Choose a base ref
...
head repository: euank/node-parse-numeric-range
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.3.0
Choose a head ref
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Aug 15, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4f346c4 View commit details

Commits on Aug 19, 2021

  1. Merge pull request #13 from deadcoder0904/master

    Add built-in TypeScript support
    euank authored Aug 19, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3d972f8 View commit details

Commits on Aug 22, 2021

  1. Release v1.3.0

    euank committed Aug 22, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6728dcf View commit details
Showing with 7 additions and 1 deletion.
  1. +6 −0 index.d.ts
  2. +1 −1 package.json
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Parses expressions like `1-10,20-30`. Returns an energetic (as opposed to lazy) array.
* @param expression a numeric range expression
*/
declare function parse(expression: string): number[];
export = parse;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parse-numeric-range",
"version": "1.2.0",
"version": "1.3.0",
"description": "Takes a string, such as \"1,2,3-10,5-8\" and turns it into an array of numbers",
"main": "index.js",
"scripts": {