1
0
mirror of https://github.com/dzeiocom/libs.git synced 2025-07-22 21:09:53 +00:00
Commit Graph

173 Commits

Author SHA1 Message Date
fd24924d10 feat: introduce objectRemap function
This commit introduces a new function `objectRemap` in `object-util` package. It takes an object as input and applies the provided mapping function to each key-value pair. It produces a new object with transformed keys and values.

The `objectRemap` function is more advanced than `objectMap` as it transforms an object back into another object. It works on objects and arrays. If multiple keys are the same, only the last value will be set by default, but enabling the `strict` option will throw an error if the same key is set twice.

This commit also updates the import statement in tests for this new function.

Signed-off-by: Avior <f.bouillon@aptatio.com>
2023-03-14 10:54:46 +01:00
7cc3ca98c1 fix: Add JSDocs returns for most functions that needed one
Signed-off-by: Avior <f.bouillon@aptatio.com>
2023-03-14 10:53:09 +01:00
d67c53d89d feat(object-util): export BasicObjectKeys and BasicObject types
The `BasicObjectKeys` and `BasicObject` types are now exported for use outside of the module.

Signed-off-by: Avior <f.bouillon@aptatio.com>
2023-03-14 10:50:14 +01:00
c664af98ba fix: Add tests to have a better array support
Signed-off-by: Avior <f.bouillon@aptatio.com>
2023-03-14 10:49:49 +01:00
9779e453f0 bump: Object-Util v1.4.6
Signed-off-by: Avior <f.bouillon@aptatio.com>
2023-02-22 16:32:20 +01:00
a1304e7349 fix: handle arrays with empty elements
Signed-off-by: Avior <f.bouillon@aptatio.com>
2023-02-22 16:31:52 +01:00
91e44c4033 bump(config): v1.1.12
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-22 10:48:03 +01:00
d5aaf86146 fix: incorrect scripts in dev mode
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-22 10:47:13 +01:00
289ea6c5bf bump)config): 1.1.11
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-12 12:45:24 +01:00
325355c09c fix(config): incorrect config
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-12 12:44:49 +01:00
030dc68587 bump(config): version 1.1.10
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-12 12:07:18 +01:00
9d7af6076a fix(config): Better CSP security
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-12 12:05:46 +01:00
2528f5e1af bump(object-util): Version 1.4.5
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-08 13:58:55 +01:00
ddb0a4820a fix(object-util): Typescript outputing error when using object with undefined
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-08 13:58:41 +01:00
49f16223c3 bump(object-util): Version 1.4.4
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-08 13:46:32 +01:00
50855afe67 bump(object-util): 1.4.4 (Fixed export)
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-08 13:45:53 +01:00
6be80cb2e1 fix(object-util): Typing not being sent back to user
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-08 12:15:08 +01:00
c0da88ff2b bump(config): version 1.1.9
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-08 11:16:02 +01:00
f24e11bec4 bump(config): version 1.1.9
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-08 11:09:57 +01:00
2d39399d36 misc(config): Updated configs
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-08 11:01:49 +01:00
ac8730c10d bump(listener): to version 1.0.3
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-11-17 10:50:13 +01:00
198aa692e4 fix(listener): Packaging not including source code
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-11-17 10:46:40 +01:00
9f3e415d2f fix(listener): moved from yarn to npm
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-11-17 10:42:29 +01:00
20c6044a9d bump: @dzeio/listener to 1.0.2
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-11-17 10:41:38 +01:00
e11260207f fix: Listener not emitting 'all' event
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-11-17 10:41:25 +01:00
9818037cc5 fix: Publish error
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-10-18 12:54:49 +02:00
43eb380028 bump: URL Manager ot 1.0.8
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-10-18 12:50:17 +02:00
d1d4169906 feat: Allow to remove the domain
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-10-18 12:47:47 +02:00
31ae6d8418 bump: 1.1.8
Signed-off-by: Avior <github@avior.me>
2022-05-13 14:55:50 +02:00
c5d4ed166a misc: Update config for latest next version
Signed-off-by: Avior <github@avior.me>
2022-04-05 12:39:57 +02:00
9351a54552 Merge branch 'master' of github.com:dzeiocom/libs 2022-04-05 12:21:26 +02:00
d24a550e8a misc: Update Config deps
Signed-off-by: Avior <github@avior.me>
2022-04-05 12:21:23 +02:00
0e46695636 bump: fix types bug
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
2021-12-17 22:30:46 +01:00
864af5cc5a Fixed my stupidity
Signed-off-by: Avior <github@avior.me>
2021-12-13 15:02:32 +01:00
a1ecbbaf73 bump @dzeio/config
Signed-off-by: Avior <github@avior.me>
2021-12-13 15:01:10 +01:00
f515091ac5 Updated tests and documentation to be more clear
Signed-off-by: Avior <github@avior.me>
2021-11-18 17:38:19 +01:00
d9dca04017 Bump @types/node from 16.10.1 to 16.10.3 (#53)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.10.1 to 16.10.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-06 11:48:40 +02:00
ce264b2b8b bump @dzeio/object-util
Signed-off-by: Avior <github@avior.me>
2021-09-29 17:17:13 +02:00
9f608a52fc Fixed Object.freeze throwing error with objectOmit (#46)
Signed-off-by: Avior <github@avior.me>
2021-09-29 17:15:52 +02:00
7ce7daf751 Upgrade Jest to 27 (#43)
* test

Signed-off-by: Avior <github@avior.me>

* Fixed

Signed-off-by: Avior <github@avior.me>

* Fix

Signed-off-by: Avior <github@avior.me>
2021-09-29 11:49:41 +02:00
12b8b8be57 bump object-util
Signed-off-by: Avior <github@avior.me>
2021-09-29 10:23:01 +02:00
bbf743677f bump url-manager
Signed-off-by: Avior <github@avior.me>
2021-09-29 10:22:37 +02:00
b7b604e11f Add modules (#41)
* Added modules for object-utils
+ moved from parcel to esbuild

Signed-off-by: Avior <github@avior.me>

* Moved url-manager

Signed-off-by: Avior <github@avior.me>

* Fixed codacy error

Signed-off-by: Avior <github@avior.me>
2021-09-29 10:12:53 +02:00
329f1ee06d Bump ts-node from 9.1.1 to 10.2.1 (#37)
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 9.1.1 to 10.2.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v9.1.1...v10.2.1)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-28 17:40:52 +02:00
3d02a29bc5 Move to NPM (#32)
* Update workflow

Signed-off-by: Avior <github@avior.me>

* Fixed parcel version

Signed-off-by: Avior <github@avior.me>

* Some more fixes

Signed-off-by: Avior <github@avior.me>

* Removed console.memory

Signed-off-by: Avior <github@avior.me>

* Update

Signed-off-by: Avior <github@avior.me>

* fuck windows

Signed-off-by: Avior <github@avior.me>

* bump config for better node 12 support

Signed-off-by: Avior <github@avior.me>
2021-09-28 15:57:36 +02:00
44887c3d41 Fixed bug (#33)
Signed-off-by: Avior <github@avior.me>
2021-09-28 15:41:18 +02:00
393d686681 bump
Signed-off-by: Avior <github@avior.me>
2021-09-28 12:19:58 +02:00
02d733e150 Fixed NextJS config
Signed-off-by: Avior <github@avior.me>
2021-09-28 12:19:22 +02:00
49d5e98a43 bump 1.4.0
Signed-off-by: Avior <github@avior.me>
2021-09-28 11:48:01 +02:00
cb97ded195 Add objectOmit function
- also bump deps (not parcel because 2 is not the way I want to continue using it)

Signed-off-by: Avior <github@avior.me>
2021-09-28 11:47:33 +02:00