Skip to content

Commit

Permalink
Update resources
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Nov 11, 2024
1 parent 9f5df18 commit 164f417
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .dnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ await invokeDenoNodeJSTransformer({
"dissect",
"string"
],
homepage: "https://github.com/hugoalh-studio/string-dissect-es#readme",
homepage: "https://github.com/hugoalh/string-dissect-es#readme",
bugs: {
url: "https://github.com/hugoalh-studio/string-dissect-es/issues"
url: "https://github.com/hugoalh/string-dissect-es/issues"
},
license: "MIT",
author: "hugoalh",
repository: {
type: "git",
url: "git+https://github.com/hugoalh-studio/string-dissect-es.git"
url: "git+https://github.com/hugoalh/string-dissect-es.git"
},
scripts: {
},
Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @hugoalh-studio/develop
* @hugoalh
2 changes: 1 addition & 1 deletion .github/workflows/announce-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: "Send Discord Webhook"
uses: "hugoalh/send-discord-webhook-ghaction@v7"
with:
key: "${{secrets.DISCORD_HXHS_PROJECTNEWRELEASEANNOUNCER_WEBHOOK}}"
key: "${{secrets.COMMUNITY_DISCORD_PROJECTNEWRELEASEANNOUNCER_WEBHOOK}}"
embeds: |-
- title: "String Dissect (ES)"
description: |-
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: "String Dissect (ES)"
message: "If you use this software, please cite it using the metadata from this file."
type: "software"
authors:
- name: "hugoalh Studio"
repository-code: "https://github.com/hugoalh-studio/string-dissect-es"
- name: "hugoalh"
repository-code: "https://github.com/hugoalh/string-dissect-es"
keywords:
- "dissect"
- "es"
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing Guide

This Contributing Guide is depend on the "[hxhS (hugoalh & hugoalh Studio) Universal Contributing Guide](https://github.com/hugoalh/hugoalh/blob/main/guides/hxhs-universal-contributing.md)", along with revises and take precedence over it.
This Contributing Guide is depend on the "[hugoalh Universal Contributing Guide](https://github.com/hugoalh/hugoalh/blob/main/guides/universal-contributing.md)", along with revises and take precedence over it.

## Revises

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright © 2023\~2024 hugoalh Studio
Copyright © 2023\~2024 hugoalh

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[**⚖️** MIT](./LICENSE.md)

[![GitHub: hugoalh-studio/string-dissect-es](https://img.shields.io/github/v/release/hugoalh-studio/string-dissect-es?label=hugoalh-studio/string-dissect-es&labelColor=181717&logo=github&logoColor=ffffff&sort=semver&style=flat "GitHub: hugoalh-studio/string-dissect-es")](https://github.com/hugoalh-studio/string-dissect-es)
[![GitHub: hugoalh/string-dissect-es](https://img.shields.io/github/v/release/hugoalh/string-dissect-es?label=hugoalh/string-dissect-es&labelColor=181717&logo=github&logoColor=ffffff&sort=semver&style=flat "GitHub: hugoalh/string-dissect-es")](https://github.com/hugoalh/string-dissect-es)
[![JSR: @hugoalh/string-dissect](https://img.shields.io/jsr/v/@hugoalh/string-dissect?label=@hugoalh/string-dissect&labelColor=F7DF1E&logo=jsr&logoColor=000000&style=flat "JSR: @hugoalh/string-dissect")](https://jsr.io/@hugoalh/string-dissect)
[![NPM: @hugoalh/string-dissect](https://img.shields.io/npm/v/@hugoalh/string-dissect?label=@hugoalh/string-dissect&labelColor=CB3837&logo=npm&logoColor=ffffff&style=flat "NPM: @hugoalh/string-dissect")](https://www.npmjs.com/package/@hugoalh/string-dissect)

Expand All @@ -26,7 +26,7 @@ An ES (JavaScript & TypeScript) module to dissect the string; Safe with the emoj

- **Remote - GitHub Raw:**
```
https://raw.githubusercontent.com/hugoalh-studio/string-dissect-es/{Tag}/mod.ts
https://raw.githubusercontent.com/hugoalh/string-dissect-es/{Tag}/mod.ts
```
- **JSR:**
```
Expand All @@ -52,7 +52,7 @@ An ES (JavaScript & TypeScript) module to dissect the string; Safe with the emoj

*This module does not require any runtime permission.*

## 🧩 APIs
## 🧩 APIs (Excerpt)

- ```ts
class StringDissector {
Expand Down Expand Up @@ -125,7 +125,7 @@ An ES (JavaScript & TypeScript) module to dissect the string; Safe with the emoj
```

> [!NOTE]
> - For the prettier documentation, can visit via:
> - For the full or prettier documentation, can visit via:
> - [Deno CLI `deno doc`](https://docs.deno.com/runtime/reference/cli/documentation_generator/)
> - [JSR](https://jsr.io/@hugoalh/string-dissect)
Expand Down Expand Up @@ -187,7 +187,11 @@ An ES (JavaScript & TypeScript) module to dissect the string; Safe with the emoj
```
- ```ts
/* Either */
Array.from(new StringDissector().dissect("🤝💑💏👪👨‍👩‍👧‍👦👩‍👦👩‍👧‍👦🧑‍🤝‍🧑")).map((element) => { return element.value; });
Array.from(dissectString("🤝💑💏👪👨‍👩‍👧‍👦👩‍👦👩‍👧‍👦🧑‍🤝‍🧑")).map((element) => { return element.value; });
Array.from(new StringDissector().dissect("🤝💑💏👪👨‍👩‍👧‍👦👩‍👦👩‍👧‍👦🧑‍🤝‍🧑"), ({ value }) => {
return value;
});
Array.from(dissectString("🤝💑💏👪👨‍👩‍👧‍👦👩‍👦👩‍👧‍👦🧑‍🤝‍🧑"), ({ value }) => {
return value;
});
//=> [ "🤝", "💑", "💏", "👪", "👨‍👩‍👧‍👦", "👩‍👦", "👩‍👧‍👦", "🧑‍🤝‍🧑" ]
```
5 changes: 1 addition & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
| **Versions** | **Release Date** | **Long Term Support Date** | **End Of Life Date** |
|:-:|:-:|:-:|:-:|
| v3.X.X | 2024-04-15 | 2024-04-15 | *Unknown* |
| v1.X.X (For Non-NPM) | 2024-03-11 | 2024-03-11 | 2024-10-15 |
| v2.X.X (For NPM Only) | 2023-12-27 | 2024-01-08 | 2024-10-15 |
| v1.X.X (For NPM Only) | 2023-03-09 | 2023-04-06 | 2024-03-01 |

> [!NOTE]
> - The date format is according to the specification ISO 8601.
Expand All @@ -16,4 +13,4 @@
## Report Vulnerabilities

To report security vulnerabilities, please [create security vulnerability report](https://github.com/hugoalh/hugoalh/blob/main/guides/hxhs-universal-contributing.md#create-security-vulnerability-report).
To report security vulnerabilities, please [create security vulnerability report](https://github.com/hugoalh/hugoalh/blob/main/guides/universal-contributing.md#create-security-vulnerability-report).
4 changes: 2 additions & 2 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"useTabs": true
},
"imports": { // IMPORTANT: Only remap development dependencies!
"DNT": "https://raw.githubusercontent.com/hugoalh-studio/deno-nodejs-transformer/v0.5.0/mod.ts",
"STD/assert": "jsr:@std/assert@^1.0.6"
"DNT": "https://raw.githubusercontent.com/hugoalh/deno-nodejs-transformer/v0.5.3/mod.ts",
"STD/assert": "jsr:@std/assert@^1.0.7"
},
"lint": {
"rules": {
Expand Down
8 changes: 4 additions & 4 deletions mod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { StringDissector } from "./mod.ts";
const sample1 = "Vel ex sit est sit est tempor enim et voluptua consetetur gubergren gubergren ut.";
const sample2 = "🤝💑💏👪👨‍👩‍👧‍👦👩‍👦👩‍👧‍👦🧑‍🤝‍🧑";
Deno.test("1", { permissions: "none" }, () => {
assertEquals(Array.from(new StringDissector().dissectExtend(sample1)).map((value) => {
return value.value;
assertEquals(Array.from(new StringDissector().dissectExtend(sample1), ({ value }) => {
return value;
}), ["Vel", " ", "ex", " ", "sit", " ", "est", " ", "sit", " ", "est", " ", "tempor", " ", "enim", " ", "et", " ", "voluptua", " ", "consetetur", " ", "gubergren", " ", "gubergren", " ", "ut", "."]);
});
Deno.test("2", { permissions: "none" }, () => {
assertEquals(Array.from(new StringDissector().dissectExtend(sample2)).map((value) => {
return value.value;
assertEquals(Array.from(new StringDissector().dissectExtend(sample2), ({ value }) => {
return value;
}), ["🤝", "💑", "💏", "👪", "👨‍👩‍👧‍👦", "👩‍👦", "👩‍👧‍👦", "🧑‍🤝‍🧑"]);
});

0 comments on commit 164f417

Please sign in to comment.