Skip to content

Commit

Permalink
chore: revert 26978cc
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Jul 14, 2023
1 parent 93f296f commit f1751ad
Show file tree
Hide file tree
Showing 12 changed files with 14,497 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "plugin:bpmn-io/es6"
"extends": "plugin:bpmn-io/recommended"
}
23 changes: 23 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI
on: [push, pull_request]
jobs:
Build:
strategy:
matrix:
os: [windows-latest]
node-version: [16]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run all
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dist/
node_modules/
.idea
*.iml
package-lock.json
*.iml
6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ids

[![Build Status](https://travis-ci.org/bpmn-io/ids.svg)](https://travis-ci.org/bpmn-io/ids)
[![Build Status](https://travis-ci.com/bpmn-io/ids.svg)](https://travis-ci.com/bpmn-io/ids)

A simple caching id generation utility.

Expand Down
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export = Ids;

declare class Ids {

/**
Expand Down Expand Up @@ -60,3 +58,5 @@ declare class Ids {

type Seed = [number, number] | [number, number, number];
type ID = string;

export = Ids;
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import hat from 'hat';

/**
* @typedef { [ number, number ] | [ number, number, number ] } Seed
*/

/**
* Create a new id generator / cache instance.
*
* You may optionally provide a seed that is used internally.
*
* @param {Seed} seed
* @param {Seed} [seed]
*/
export default function Ids(seed) {

Expand Down
Loading

0 comments on commit f1751ad

Please sign in to comment.