dhavaltank-js-utils 0.0.1 → 0.0.3

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.
package/dist/index.cjs CHANGED
@@ -359,7 +359,7 @@ var groupBy = (arr, key) => {
359
359
  return arr;
360
360
  return arr.reduce((acc, obj) => {
361
361
  const keyValue = obj[key];
362
- (acc[keyValue] ?? (acc[keyValue] = [])).push(obj);
362
+ (acc[keyValue] ??= []).push(obj);
363
363
  return acc;
364
364
  }, {});
365
365
  } catch (error) {
package/dist/index.js CHANGED
@@ -307,7 +307,7 @@ var groupBy = (arr, key) => {
307
307
  return arr;
308
308
  return arr.reduce((acc, obj) => {
309
309
  const keyValue = obj[key];
310
- (acc[keyValue] ?? (acc[keyValue] = [])).push(obj);
310
+ (acc[keyValue] ??= []).push(obj);
311
311
  return acc;
312
312
  }, {});
313
313
  } catch (error) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "dhavaltank-js-utils",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "JavaScript Utility Package which is a collection of functions i use regularly and don't want to write again",
5
- "main": "./dist/index.ts",
5
+ "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "type": "module",
8
8
  "types": "./dist/index.d.ts",
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "strict": true,
4
- "noImplicitAny": true,
5
- "esModuleInterop": true,
6
- "strictNullChecks": true,
7
- "target": "ES2020",
8
- "moduleResolution": "Node10",
9
- "module": "CommonJS",
10
- "declaration": true,
11
- "isolatedModules": true,
12
- "noEmit": true,
13
- "outDir": "dist"
14
- },
15
- "include": ["src"],
16
- "exclude": ["node_modules"]
17
- }
package/tsup.config.ts DELETED
@@ -1,10 +0,0 @@
1
- import { defineConfig } from 'tsup';
2
-
3
- export default defineConfig({
4
- format: ['cjs', 'esm'],
5
- entry: ['./src/index.ts'],
6
- dts: true,
7
- shims: true,
8
- skipNodeModulesBundle: true,
9
- clean: true,
10
- });