File size: 2,312 Bytes
1fa8efd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
  "name": "async-mutex",
  "version": "0.3.2",
  "description": "A mutex for guarding async workflows",
  "scripts": {
    "lint": "eslint src/**/*.ts test/**/*.ts",
    "build": "tsc && tsc -p tsconfig.es6.json && tsc -p tsconfig.mjs.json && rollup -o index.mjs mjs/index.js",
    "prepublishOnly": "yarn test && yarn build",
    "test": "yarn lint && nyc --reporter=text --reporter=html --reporter=lcov mocha test/*.ts",
    "coveralls": "cat ./coverage/lcov.info | coveralls"
  },
  "author": "Christian Speckner <cnspeckn@googlemail.com> (https://github.com/DirtyHairy/)",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/DirtyHairy/async-mutex"
  },
  "prettier": {
    "printWidth": 120,
    "tabWidth": 4,
    "singleQuote": true,
    "parser": "typescript"
  },
  "importSort": {
    ".js, .jsx, .ts, .tsx": {
      "style": "eslint",
      "parser": "typescript"
    }
  },
  "eslintConfig": {
    "root": true,
    "parser": "@typescript-eslint/parser",
    "plugins": [
      "@typescript-eslint"
    ],
    "extends": [
      "eslint:recommended",
      "plugin:@typescript-eslint/eslint-recommended",
      "plugin:@typescript-eslint/recommended"
    ],
    "rules": {
      "eqeqeq": "error",
      "@typescript-eslint/no-namespace": "off",
      "no-async-promise-executor": "off"
    }
  },
  "keywords": [
    "mutex",
    "async"
  ],
  "files": [
    "lib",
    "es6",
    "index.mjs"
  ],
  "devDependencies": {
    "@sinonjs/fake-timers": "^7.1.2",
    "@types/mocha": "^9.0.0",
    "@types/node": "^16.7.8",
    "@types/sinonjs__fake-timers": "^6.0.3",
    "@typescript-eslint/eslint-plugin": "^4.30.0",
    "@typescript-eslint/parser": "^4.30.0",
    "coveralls": "^3.1.1",
    "eslint": "^7.32.0",
    "import-sort-style-eslint": "^6.0.0",
    "mocha": "^9.1.1",
    "nyc": "^15.1.0",
    "prettier": "^2.3.2",
    "prettier-plugin-import-sort": "^0.0.7",
    "rollup": "^2.56.3",
    "ts-node": "^10.2.1",
    "typescript": "^4.4.2"
  },
  "main": "lib/index.js",
  "module": "es6/index.js",
  "types": "lib/index.d.ts",
  "exports": {
    ".": {
      "import": "./index.mjs",
      "require": "./lib/index.js",
      "default": "./lib/index.js"
    },
    "./package.json": "./package.json"
  },
  "dependencies": {
    "tslib": "^2.3.1"
  }
}