detective-vue2 2.1.2 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +10 -9
package/index.js CHANGED
@@ -8,6 +8,9 @@ const detectiveStylus = require('detective-stylus');
8
8
  const detectiveSass = require('detective-sass');
9
9
  const detectiveLess = require('@dependents/detective-less');
10
10
 
11
+ /**
12
+ * Extracts the dependencies of the supplied Vue module
13
+ */
11
14
  function detectiveVue(content, options) {
12
15
  if (content === undefined) throw new Error('content not given');
13
16
  if (typeof content !== 'string') throw new Error('content is not a string');
@@ -63,7 +66,4 @@ function detectiveVue(content, options) {
63
66
  return dependencies;
64
67
  }
65
68
 
66
- /**
67
- * Extracts the dependencies of the supplied Vue module
68
- */
69
69
  module.exports = detectiveVue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "detective-vue2",
3
- "version": "2.1.2",
3
+ "version": "2.3.0",
4
4
  "author": "Havunen <sampo.kivisto@live.fi>",
5
5
  "description": "Get the dependencies of a Vue module",
6
6
  "main": "index.js",
@@ -10,10 +10,10 @@
10
10
  "scripts": {
11
11
  "lint": "xo",
12
12
  "fix": "xo --fix",
13
- "mocha": "mocha",
14
- "test": "npm run lint && npm run mocha",
15
- "test:ci": "c8 npm run mocha",
16
- "watch": "npm run mocha -- -w"
13
+ "uvu": "uvu test",
14
+ "test": "npm run lint && npm run uvu",
15
+ "test:ci": "c8 npm run uvu",
16
+ "watch": "node --watch test/test.js"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
@@ -36,20 +36,21 @@
36
36
  "node": ">=18"
37
37
  },
38
38
  "peerDependencies": {
39
- "typescript": "^5.4.4"
39
+ "typescript": "^5.4.4 || ^6.0.2"
40
40
  },
41
41
  "dependencies": {
42
42
  "@dependents/detective-less": "^5.0.1",
43
- "@vue/compiler-sfc": "^3.5.13",
43
+ "@vue/compiler-sfc": "^3.5.32",
44
44
  "detective-es6": "^5.0.1",
45
45
  "detective-sass": "^6.0.1",
46
46
  "detective-scss": "^5.0.1",
47
47
  "detective-stylus": "^5.0.1",
48
- "detective-typescript": "^13.0.0"
48
+ "detective-typescript": "^14.1.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "c8": "^10.1.3",
52
- "mocha": "^11.1.0",
52
+ "typescript": "^6.0.3",
53
+ "uvu": "^0.5.6",
53
54
  "xo": "^0.60.0"
54
55
  },
55
56
  "xo": {