dphelper 1.8.50 → 1.8.52

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.
@@ -108,10 +108,3 @@ individual, or aggression toward or disparagement of classes of individuals.
108
108
 
109
109
  **Consequence**: A permanent ban from any sort of public interaction within
110
110
  the community.
111
-
112
- ## Attribution
113
-
114
- This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org/), version
115
- [1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct/code_of_conduct.md) and
116
- [2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/code_of_conduct.md),
117
- and was generated by [contributing.md](https://contributing.md/generator).
@@ -32,7 +32,7 @@ This project and everyone participating in it is governed by the [dphelper Code
32
32
 
33
33
  ## I Have a Question
34
34
 
35
- > If you want to ask a question, we assume that you have read the available [Documentation](https://passariello.github.io/dphelper/).
35
+ > If you want to ask a question, we assume that you have read the available [Documentation](https://passariello.gitbook.io/dphelper-devtools/).
36
36
 
37
37
  Before you ask a question, it is best to search for existing [Issues](https://github.com/passariello/dphelper/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
38
38
 
@@ -57,7 +57,7 @@ We will then take care of the issue as soon as possible.
57
57
  A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
58
58
 
59
59
  * Make sure that you are using the latest version.
60
- * Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://passariello.github.io/dphelper/). If you are looking for support, you might want to check [this section](contributing.md#i-have-a-question)).
60
+ * Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://passariello.gitbook.io/dphelper-devtools/). If you are looking for support, you might want to check [this section](contributing.md#i-have-a-question)).
61
61
  * To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/passariello/dphelper/issues?q=label%3Abug).
62
62
  * Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
63
63
  * Collect information about the bug:
@@ -91,24 +91,20 @@ This section guides you through submitting an enhancement suggestion for dphelpe
91
91
  #### Before Submitting an Enhancement
92
92
 
93
93
  * Make sure that you are using the latest version.
94
- * Read the [documentation](https://passariello.github.io/dphelper/) carefully and find out if the functionality is already covered, maybe by an individual configuration.
94
+ * Read the [documentation](https://passariello.gitbook.io/dphelper-devtools/) carefully and find out if the functionality is already covered, maybe by an individual configuration.
95
95
  * Perform a [search](https://github.com/passariello/dphelper/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
96
96
  * Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
97
97
 
98
98
  #### How Do I Submit a Good Enhancement Suggestion?
99
99
 
100
- Enhancement suggestions are tracked as [GitHub issues](https://github.com/passariello/dphelper/issues).
100
+ Enhancement suggestions are tracked as [GitHub issues](https://github.com/passariello/boilerplate/issues).
101
101
 
102
102
  * Use a **clear and descriptive title** for the issue to identify the suggestion.
103
103
  * Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
104
104
  * **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
105
- * You may want to **include screenshots or screen recordings** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [LICEcap](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and the built-in [screen recorder in GNOME](https://help.gnome.org/users/gnome-help/stable/screen-shot-record.html.en) or [SimpleScreenRecorder](https://github.com/MaartenBaert/ssr) on Linux.
106
- * **Explain why this enhancement would be useful** to most dphelper users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
105
+ * You may want to **include screenshots or screen recordings** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [screentogif](https://www.screentogif.com/) to record GIFs on macOS and Windows, and the built-in [screen recorder in GNOME](https://help.gnome.org/users/gnome-help/stable/screen-shot-record.html.en) or [SimpleScreenRecorder](https://github.com/MaartenBaert/ssr) on Linux.
106
+ * **Explain why this enhancement would be useful** to most boilerplate users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
107
107
 
108
108
  ## Join The Project Team
109
109
 
110
110
  Please send email to dariopassariello@gmail.com
111
-
112
- ## Attribution
113
-
114
- This guide is based on the [contributing.md](https://contributing.md/generator)!
package/general/LIST.md CHANGED
@@ -50,6 +50,10 @@ This document provides a comprehensive list of all available functions in the `d
50
50
  <br>**Description:** Creates a deep clone of an object.
51
51
  - `dphelper.array.match(arrayWords: any[], arrayToCheck: any[]): boolean`
52
52
  <br>**Description:** Checks if two arrays match.
53
+ - `dphelper.array.shallow(array: any[]): any[]`
54
+ <br>**Description:** Generate a shallow copy of an object.
55
+ - `dphelper.array.deeCopy(array: any[]): any[]`
56
+ <br>**Description:** Generate a structured copy of an object.
53
57
 
54
58
  ### Audio
55
59
  - `dphelper.audio.play(url: string): void`
@@ -131,10 +135,6 @@ This document provides a comprehensive list of all available functions in the `d
131
135
  - `dphelper.coods.mapDegreesToPixels(degree: number, minDegree: number, maxDegree: number, minPixel: number, maxPixel: number, padding: number): number`
132
136
  <br>**Description:** Maps degrees to pixels.
133
137
 
134
- ### Credits
135
- - `dphelper.credits: Function`
136
- <br>**Description:** Displays credits.
137
-
138
138
  ### Date
139
139
  - `dphelper.date.days(lang?: string): string[]`
140
140
  <br>**Description:** Returns the days of the week in a specified language.
@@ -350,22 +350,26 @@ This document provides a comprehensive list of all available functions in the `d
350
350
  <br>**Description:** Sorts an object.
351
351
  - `dphelper.obj.toXML(obj: Record<string, any>): string`
352
352
  <br>**Description:** Converts an object to XML.
353
- - `dphelper.obj.find(array: any[], key: string, value: any): any`
354
- <br>**Description:** Finds an element in an array by key and value.
353
+ - `dphelper.obj.find(object: any[], key: string, value: any): any`
354
+ <br>**Description:** Finds an element in an object by key and value.
355
355
  - `dphelper.obj.instance(obj: any): any`
356
356
  <br>**Description:** Returns the instance of an object.
357
357
  - `dphelper.obj.updateByKey(obj: Record<string, any>, key: string, newValue: any): Record<string, any>`
358
358
  <br>**Description:** Updates an object by key.
359
- - `dphelper.obj.findindex(array: any[], key: string): number`
360
- <br>**Description:** Finds the index of an element in an array by key.
359
+ - `dphelper.obj.findindex(object: any[], key: string): number`
360
+ <br>**Description:** Finds the index of an element in an object by key.
361
361
  - `dphelper.obj.parse(val: any): any`
362
362
  <br>**Description:** Parses a value.
363
363
  - `dphelper.obj.isObject(val: any): boolean`
364
364
  <br>**Description:** Checks if a value is an object.
365
365
  - `dphelper.obj.diff(obj1: Record<string, any>, obj2: Record<string, any>): Record<string, { obj1: any, obj2: any }>`
366
366
  <br>**Description:** Finds the difference between two objects.
367
- - `dphelper.obj.path(prop: string, array: string[], separator?: string): string`
367
+ - `dphelper.obj.path(prop: string, object: string[], separator?: string): string`
368
368
  <br>**Description:** Converts a property path to a string.
369
+ - `dphelper.obj.shallow(object: Object): Object`
370
+ <br>**Description:** Generate a shallow copy of an object.
371
+ - `dphelper.obj.deeCopy(object: Object): Object`
372
+ <br>**Description:** Generate a structured copy of an object.
369
373
 
370
374
  ### Path
371
375
  - `dphelper.path.rail(): string[]`