@cognite/underscore 1.0.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 (60) hide show
  1. package/README.md +40 -0
  2. package/dist/arrays.d.ts +41 -0
  3. package/dist/arrays.js +23 -0
  4. package/dist/assert.d.ts +8 -0
  5. package/dist/assert.js +6 -0
  6. package/dist/brand.d.ts +42 -0
  7. package/dist/chunk-and-process-in-parallel.d.ts +112 -0
  8. package/dist/chunk-and-process-in-parallel.js +30 -0
  9. package/dist/chunk-array.d.ts +27 -0
  10. package/dist/chunk-array.js +7 -0
  11. package/dist/class.d.ts +12 -0
  12. package/dist/class.js +6 -0
  13. package/dist/exhaustive-guard.d.ts +17 -0
  14. package/dist/exhaustive-guard.js +6 -0
  15. package/dist/exponential-backoff-with-jitter.d.ts +15 -0
  16. package/dist/exponential-backoff-with-jitter.js +8 -0
  17. package/dist/generate-unique-name.d.ts +19 -0
  18. package/dist/generate-unique-name.js +11 -0
  19. package/dist/get-numbers-between.d.ts +17 -0
  20. package/dist/get-numbers-between.js +6 -0
  21. package/dist/humanize-value.d.ts +5 -0
  22. package/dist/humanize-value.js +16 -0
  23. package/dist/index.d.ts +23 -0
  24. package/dist/index.js +23 -0
  25. package/dist/is-function.d.ts +7 -0
  26. package/dist/is-function.js +6 -0
  27. package/dist/is-primitive.d.ts +9 -0
  28. package/dist/is-primitive.js +7 -0
  29. package/dist/is-valid-url.d.ts +16 -0
  30. package/dist/is-valid-url.js +17 -0
  31. package/dist/iterators.d.ts +9 -0
  32. package/dist/iterators.js +7 -0
  33. package/dist/math.d.ts +14 -0
  34. package/dist/math.js +9 -0
  35. package/dist/random.d.ts +32 -0
  36. package/dist/random.js +22 -0
  37. package/dist/react/use-debounce.d.ts +23 -0
  38. package/dist/react/use-debounce.js +15 -0
  39. package/dist/react/use-derived-promise.d.ts +34 -0
  40. package/dist/react/use-derived-promise.js +34 -0
  41. package/dist/react/use-stable-sync-external-store.d.ts +27 -0
  42. package/dist/react/use-stable-sync-external-store.js +12 -0
  43. package/dist/react.d.ts +3 -0
  44. package/dist/react.js +4 -0
  45. package/dist/repeat.d.ts +7 -0
  46. package/dist/repeat.js +6 -0
  47. package/dist/retry-async.d.ts +92 -0
  48. package/dist/retry-async.js +18 -0
  49. package/dist/sleep.d.ts +7 -0
  50. package/dist/sleep.js +6 -0
  51. package/dist/string.d.ts +41 -0
  52. package/dist/string.js +12 -0
  53. package/dist/structMap/index.d.ts +3 -0
  54. package/dist/structMap/stableStringify.d.ts +23 -0
  55. package/dist/structMap/stableStringify.js +24 -0
  56. package/dist/structMap/structMap.d.ts +110 -0
  57. package/dist/structMap/structMap.js +29 -0
  58. package/dist/structMap/testUtils.d.ts +17 -0
  59. package/dist/structMap/types.d.ts +7 -0
  60. package/package.json +45 -0
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@cognite/underscore",
3
+ "version": "1.0.0",
4
+ "description": "A collection of useful plain TypeScript utility functions.",
5
+ "license": "Apache-2.0",
6
+ "sideEffects": false,
7
+ "type": "module",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js"
15
+ },
16
+ "./react": {
17
+ "types": "./dist/react.d.ts",
18
+ "import": "./dist/react.js"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "devDependencies": {
25
+ "@nx/devkit": "22.7.8",
26
+ "@nx/eslint-plugin": "22.7.8",
27
+ "@testing-library/react": "16.0.1",
28
+ "@types/lodash-es": "^4.17.12",
29
+ "@types/react": "18.3.14",
30
+ "@vitejs/plugin-react": "^5.2.0",
31
+ "fast-check": "^4.0.0",
32
+ "lodash-es": "^4.18.1",
33
+ "react": "^18.3.1",
34
+ "typedoc": "^0.27.6",
35
+ "typedoc-plugin-markdown": "^4.4.1",
36
+ "typescript": "6.0.3",
37
+ "vite": "8.2.2",
38
+ "vite-plugin-dts": "^4.5.4",
39
+ "vitest": "^4.1.10"
40
+ },
41
+ "peerDependencies": {
42
+ "lodash-es": "^4.18.1",
43
+ "react": "^18.3.1"
44
+ }
45
+ }