@wexample/js-helpers 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/.iml CHANGED
File without changes
package/.wex/config.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  global:
2
- name: js_app
3
- version: 0.0.1
2
+ name: js_helpers
3
+ version: 0.0.3
@@ -11,7 +11,7 @@ class AppWorkdir(JavascriptPackageWorkdir):
11
11
  raw_value = super().prepare_value(raw_value=raw_value)
12
12
 
13
13
  def _build_remote_github(target: AppWorkdir) -> str:
14
- return f"git@github.com:wexample/javascript-{string_to_kebab_case(target.get_project_name())}.git"
14
+ return f"git@github.com:wexample/{string_to_kebab_case(target.get_project_name())}.git"
15
15
 
16
16
  def _build_remote_gitlab(target: AppWorkdir) -> str:
17
17
  return f"ssh://git@gitlab.wexample.com:4567/wexample-javascript/{string_to_kebab_case(target.get_project_name())}.git"
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # js_app
1
+ # js_helpers
2
2
 
3
- Version: 0.0.1
3
+ Version: 0.0.3
4
4
 
5
5
  ## Table of Contents
6
6
 
@@ -125,10 +125,6 @@ This package is part of the Wexample suite and is compatible with other suite pa
125
125
 
126
126
  Refer to each package's documentation for specific version compatibility requirements.
127
127
 
128
- ## Dependencies
129
-
130
-
131
-
132
128
  # About us
133
129
 
134
130
  [Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.1",
2
+ "version": "0.0.3",
3
3
  "type": "module",
4
4
  "name": "@wexample/js-helpers",
5
5
  "publishConfig": {
@@ -0,0 +1,7 @@
1
+ export function arrayDeleteItem<T>(haystack: T[], needle: T): T[] {
2
+ return haystack.filter((item) => item !== needle);
3
+ }
4
+
5
+ export function arrayDeleteIndex<T>(haystack: T[], index: number): T[] {
6
+ return haystack.filter((_, i) => i !== index);
7
+ }
package/version.txt CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.3