@aidc-toolkit/utility 0.9.5 → 0.9.6-beta

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.
@@ -1,6 +1,6 @@
1
1
  import { I18NEnvironment, i18nInit } from "@aidc-toolkit/core";
2
2
  import { describe, expect, test } from "vitest";
3
- import { EncryptionTransformer, IdentityTransformer, IteratorProxy, Sequencer, Transformer } from "../src/index.js";
3
+ import { EncryptionTransformer, IdentityTransformer, Sequencer, Transformer } from "../src/index.js";
4
4
 
5
5
  await i18nInit(I18NEnvironment.CLI);
6
6
 
@@ -11,7 +11,7 @@ function testTransformer(domain: number, tweak?: number, callback?: (value: bigi
11
11
 
12
12
  const transformedValuesSet = new Set<bigint>();
13
13
 
14
- IteratorProxy.from(transformer.forward(new Sequencer(0n, domain))).forEach((transformedValue, index) => {
14
+ Iterator.from(transformer.forward(new Sequencer(0n, domain))).forEach((transformedValue, index) => {
15
15
  const indexN = BigInt(index);
16
16
 
17
17
  if (sequential && transformedValue !== indexN) {
@@ -1,32 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Describe the bug**
11
- A clear and concise description of what the bug is.
12
-
13
- **To Reproduce**
14
- Steps to reproduce the behavior:
15
- 1. Go to '...'
16
- 2. Click on '....'
17
- 3. Scroll down to '....'
18
- 4. See error
19
-
20
- **Expected behavior**
21
- A clear and concise description of what you expected to happen.
22
-
23
- **Screenshots**
24
- If applicable, add screenshots to help explain your problem.
25
-
26
- **Platform**
27
- - OS: [e.g. Windows, iOS]
28
- - Browser [e.g. chrome, safari]
29
- - Browser Version [e.g. 22]
30
-
31
- **Additional context**
32
- Add any other context about the problem here.
@@ -1,20 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Is your feature request related to a problem? Please describe.**
11
- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
-
13
- **Describe the solution you'd like**
14
- A clear and concise description of what you want to happen.
15
-
16
- **Describe alternatives you've considered**
17
- A clear and concise description of any alternative solutions or features you've considered.
18
-
19
- **Additional context**
20
- Add any other context or screenshots about the feature request here.
@@ -1,20 +0,0 @@
1
- name: Build and publish
2
-
3
- on:
4
- release:
5
- types:
6
- - published
7
-
8
- jobs:
9
- build-and-publish:
10
- runs-on: ubuntu-latest
11
-
12
- steps:
13
- - name: Build and publish utility
14
- uses: aidc-toolkit/dev/.github/actions/build-publish@main
15
- with:
16
- project: utility
17
- node_version: ${{ vars.NODE_VERSION }}
18
- node_auth_token: ${{ secrets.NODE_AUTH_TOKEN }}
19
- terminal_pre_build: ${{ vars.TERMINAL_PRE_BUILD }}
20
- terminal_post_build: ${{ vars.TERMINAL_POST_BUILD }}
@@ -1,7 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
- <inspection_tool class="UpdateDependencyToLatestVersion" enabled="true" level="WARNING" enabled_by_default="true" editorAttributes="WARNING_ATTRIBUTES" />
6
- </profile>
7
- </component>
package/.idea/misc.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="openjdk-21" project-jdk-type="JavaSDK">
4
- <output url="file://$PROJECT_DIR$/out" />
5
- </component>
6
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/utility.iml" filepath="$PROJECT_DIR$/.idea/utility.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,12 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="Test all" type="JavaScriptTestRunnerVitest">
3
- <node-interpreter value="project" />
4
- <vitest-package value="$PROJECT_DIR$/node_modules/vitest" />
5
- <working-dir value="$PROJECT_DIR$" />
6
- <vitest-options value="--run" />
7
- <envs />
8
- <scope-kind value="DIRECTORY" />
9
- <test-directory value="$PROJECT_DIR$/test" />
10
- <method v="2" />
11
- </configuration>
12
- </component>
@@ -1,12 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="Test character set" type="JavaScriptTestRunnerVitest">
3
- <node-interpreter value="project" />
4
- <vitest-package value="$PROJECT_DIR$/node_modules/vitest" />
5
- <working-dir value="$PROJECT_DIR$" />
6
- <vitest-options value="--run" />
7
- <envs />
8
- <scope-kind value="TEST_FILE" />
9
- <test-file value="$PROJECT_DIR$/test/character_set.test.ts" />
10
- <method v="2" />
11
- </configuration>
12
- </component>
@@ -1,12 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="Test iterator proxy" type="JavaScriptTestRunnerVitest">
3
- <node-interpreter value="project" />
4
- <vitest-package value="$PROJECT_DIR$/node_modules/vitest" />
5
- <working-dir value="$PROJECT_DIR$" />
6
- <vitest-options value="--run" />
7
- <envs />
8
- <scope-kind value="TEST_FILE" />
9
- <test-file value="$PROJECT_DIR$/test/iterator_proxy.test.ts" />
10
- <method v="2" />
11
- </configuration>
12
- </component>
@@ -1,12 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="Test record" type="JavaScriptTestRunnerVitest">
3
- <node-interpreter value="project" />
4
- <vitest-package value="$PROJECT_DIR$/node_modules/vitest" />
5
- <working-dir value="$PROJECT_DIR$" />
6
- <vitest-options value="--run" />
7
- <envs />
8
- <scope-kind value="TEST_FILE" />
9
- <test-file value="$PROJECT_DIR$/test/record.test.ts" />
10
- <method v="2" />
11
- </configuration>
12
- </component>
@@ -1,12 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="Test regular expression" type="JavaScriptTestRunnerVitest">
3
- <node-interpreter value="project" />
4
- <vitest-package value="$PROJECT_DIR$/node_modules/vitest" />
5
- <working-dir value="$PROJECT_DIR$" />
6
- <vitest-options value="--run" />
7
- <envs />
8
- <scope-kind value="TEST_FILE" />
9
- <test-file value="$PROJECT_DIR$/test/reg_exp.test.ts" />
10
- <method v="2" />
11
- </configuration>
12
- </component>
@@ -1,12 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="Test transformer" type="JavaScriptTestRunnerVitest">
3
- <node-interpreter value="project" />
4
- <vitest-package value="$PROJECT_DIR$/node_modules/vitest" />
5
- <working-dir value="$PROJECT_DIR$" />
6
- <vitest-options value="--run" />
7
- <envs />
8
- <scope-kind value="TEST_FILE" />
9
- <test-file value="$PROJECT_DIR$/test/transformer.test.ts" />
10
- <method v="2" />
11
- </configuration>
12
- </component>
@@ -1,12 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="build" type="js.build_tools.npm" nameIsGenerated="true">
3
- <package-json value="$PROJECT_DIR$/package.json" />
4
- <command value="run" />
5
- <scripts>
6
- <script value="build" />
7
- </scripts>
8
- <node-interpreter value="project" />
9
- <envs />
10
- <method v="2" />
11
- </configuration>
12
- </component>
@@ -1,12 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="eslint" type="js.build_tools.npm" nameIsGenerated="true">
3
- <package-json value="$PROJECT_DIR$/package.json" />
4
- <command value="run" />
5
- <scripts>
6
- <script value="eslint" />
7
- </scripts>
8
- <node-interpreter value="project" />
9
- <envs />
10
- <method v="2" />
11
- </configuration>
12
- </component>
package/.idea/utility.iml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
- <orderEntry type="sourceFolder" forTests="false" />
8
- </component>
9
- </module>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>