File size: 3,860 Bytes
369fac9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
  "name": "loupe",
  "version": "2.3.7",
  "description": "Inspect utility for Node.js and browsers",
  "homepage": "https://github.com/chaijs/loupe",
  "license": "MIT",
  "author": "Veselin Todorov <hi@vesln.com>",
  "contributors": [
    "Keith Cirkel (https://github.com/keithamus)"
  ],
  "main": "./loupe.js",
  "module": "./index.js",
  "browser": {
    "./index.js": "./loupe.js",
    "util": false
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/chaijs/loupe"
  },
  "files": [
    "loupe.js",
    "index.js",
    "lib/*"
  ],
  "scripts": {
    "bench": "node -r esm bench",
    "commit-msg": "commitlint -x angular",
    "lint": "eslint --ignore-path .gitignore .",
    "prepare": "rollup -c rollup.conf.js",
    "semantic-release": "semantic-release pre && npm publish && semantic-release post",
    "test": "npm run test:node && npm run test:browser",
    "pretest:browser": "npm run prepare",
    "test:browser": "karma start --singleRun=true",
    "posttest:browser": "npm run upload-coverage",
    "test:node": "nyc mocha -r esm",
    "posttest:node": "nyc report --report-dir \"coverage/node-$(node --version)\" --reporter=lcovonly && npm run upload-coverage",
    "upload-coverage": "codecov"
  },
  "eslintConfig": {
    "root": true,
    "parserOptions": {
      "ecmaVersion": 2020
    },
    "env": {
      "es6": true
    },
    "plugins": [
      "filenames",
      "prettier"
    ],
    "extends": [
      "strict/es6"
    ],
    "rules": {
      "comma-dangle": "off",
      "func-style": "off",
      "no-magic-numbers": "off",
      "class-methods-use-this": "off",
      "array-bracket-spacing": "off",
      "array-element-newline": "off",
      "space-before-function-paren": "off",
      "arrow-parens": "off",
      "template-curly-spacing": "off",
      "quotes": "off",
      "generator-star-spacing": "off",
      "prefer-destructuring": "off",
      "no-mixed-operators": "off",
      "id-blacklist": "off",
      "curly": "off",
      "semi": [
        "error",
        "never"
      ],
      "prettier/prettier": [
        "error",
        {
          "printWidth": 120,
          "tabWidth": 2,
          "useTabs": false,
          "semi": false,
          "singleQuote": true,
          "trailingComma": "es5",
          "arrowParens": "avoid",
          "bracketSpacing": true
        }
      ]
    }
  },
  "prettier": {
    "printWidth": 120,
    "tabWidth": 2,
    "useTabs": false,
    "semi": false,
    "singleQuote": true,
    "trailingComma": "es5",
    "arrowParens": "avoid",
    "bracketSpacing": true
  },
  "dependencies": {
    "get-func-name": "^2.0.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.10",
    "@babel/preset-env": "^7.12.11",
    "@commitlint/cli": "^11.0.0",
    "@rollup/plugin-commonjs": "^17.0.0",
    "@rollup/plugin-node-resolve": "^11.1.0",
    "benchmark": "^2.1.4",
    "chai": "^4.2.0",
    "codecov": "^3.8.1",
    "commitlint-config-angular": "^11.0.0",
    "core-js": "^3.8.3",
    "cross-env": "^7.0.3",
    "eslint": "^7.18.0",
    "eslint-config-strict": "^14.0.1",
    "eslint-plugin-filenames": "^1.3.2",
    "eslint-plugin-prettier": "^3.3.1",
    "esm": "^3.2.25",
    "husky": "^4.3.8",
    "karma": "^5.2.3",
    "karma-chrome-launcher": "^3.1.0",
    "karma-coverage": "^2.0.3",
    "karma-edge-launcher": "^0.4.2",
    "karma-firefox-launcher": "^2.1.0",
    "karma-ie-launcher": "^1.0.0",
    "karma-mocha": "^2.0.1",
    "karma-opera-launcher": "^1.0.0",
    "karma-safari-launcher": "^1.0.0",
    "karma-safaritechpreview-launcher": "^2.0.2",
    "karma-sauce-launcher": "^4.3.4",
    "mocha": "^8.2.1",
    "nyc": "^15.1.0",
    "prettier": "^2.2.1",
    "rollup": "^2.37.1",
    "rollup-plugin-babel": "^4.4.0",
    "rollup-plugin-istanbul": "^3.0.0",
    "semantic-release": "^17.3.6",
    "simple-assert": "^1.0.0"
  }
}