nano-binary-search 1.0.2 → 1.0.4

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 (3) hide show
  1. package/README.md +5 -3
  2. package/index.js +2 -0
  3. package/package.json +14 -4
package/README.md CHANGED
@@ -144,6 +144,8 @@ This project is licensed under the BSD-3-Clause license.
144
144
 
145
145
  ## Release history
146
146
 
147
- - 1.0.2 *Improved docs*
148
- - 1.0.1 *Added TS typings*
149
- - 1.0.0 *Initial release*
147
+ * 1.0.4 *Updated deps*
148
+ * 1.0.3 *Added a reference to the TS types*
149
+ * 1.0.2 *Improved docs*
150
+ * 1.0.1 *Added TS typings*
151
+ * 1.0.0 *Initial release*
package/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ // @ts-self-types="./index.d.ts"
2
+
1
3
  'use strict';
2
4
 
3
5
  export const binarySearch = (sortedArray, lessFn, l = 0, r = sortedArray.length) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nano-binary-search",
3
3
  "description": "Binary search for JavaScript done right.",
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
@@ -12,7 +12,11 @@
12
12
  }
13
13
  },
14
14
  "scripts": {
15
+ "start": "tape6-server --trace",
15
16
  "test": "tape6 --flags FO",
17
+ "test:bun": "tape6-bun --flags FO",
18
+ "test:deno": "deno run -A `tape6-runner deno` --flags FO",
19
+ "test:deno-original": "tape6-deno --flags FO",
16
20
  "ts-check": "tsc --noEmit"
17
21
  },
18
22
  "repository": {
@@ -41,10 +45,16 @@
41
45
  "tape6": {
42
46
  "tests": [
43
47
  "tests/test-*.*js"
44
- ]
48
+ ],
49
+ "importmap": {
50
+ "imports": {
51
+ "tape-six": "/node_modules/tape-six/index.js",
52
+ "nano-binary-search": "/index.js"
53
+ }
54
+ }
45
55
  },
46
56
  "devDependencies": {
47
- "tape-six": "^0.9.6",
48
- "typescript": "^5.5.4"
57
+ "tape-six": "^0.11.0",
58
+ "typescript": "^5.6.2"
49
59
  }
50
60
  }