@alwatr/flat-string 6.0.2 → 9.1.0
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/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/package.json +20 -18
package/dist/main.js
CHANGED
package/dist/main.js.map
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"/**\n * This function simplifies the complex C structures that are part of a combined JavaScript string.\n *\n * @param str The string to flatten.\n * @returns The flattened string.\n * @example\n * ```typescript\n * myStr = flatString(myStr);\n * ```\n */\nexport function flatString(str: string): string {\n // @ts-expect-error because it alters wrong compilation errors.\n str | 0;\n return str;\n}\n"
|
|
6
6
|
],
|
|
7
7
|
"mappings": ";AAUO,SAAS,CAAU,CAAC,EAAqB,CAG9C,OADA,EAAM,EACC",
|
|
8
|
-
"debugId": "
|
|
8
|
+
"debugId": "F61EC0D912D14ADF64756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/flat-string",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "The `flat-string` function flattens the underlying C structures of a concatenated JavaScript string.",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
|
+
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com> (https://ali.mihandoost.com)",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"repository": {
|
|
9
|
-
"directory": "packages/flat-string",
|
|
10
9
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/Alwatr/
|
|
10
|
+
"url": "https://github.com/Alwatr/alwatr",
|
|
11
|
+
"directory": "pkg/nanolib/flat-string"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/Alwatr/
|
|
14
|
-
"bugs": "https://github.com/Alwatr/
|
|
13
|
+
"homepage": "https://github.com/Alwatr/alwatr/tree/main/pkg/nanolib/flat-string#readme",
|
|
14
|
+
"bugs": "https://github.com/Alwatr/alwatr/issues",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
17
|
"types": "./dist/main.d.ts",
|
|
18
|
+
"import": "./dist/main.js",
|
|
18
19
|
"default": "./dist/main.js"
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
"sideEffects": false,
|
|
22
23
|
"devDependencies": {
|
|
23
|
-
"@alwatr/nano-build": "
|
|
24
|
-
"@alwatr/
|
|
25
|
-
"@alwatr/
|
|
24
|
+
"@alwatr/nano-build": "9.1.0",
|
|
25
|
+
"@alwatr/tsconfig-base": "9.1.0",
|
|
26
|
+
"@alwatr/type-helper": "9.1.0",
|
|
26
27
|
"typescript": "^6.0.2"
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
|
@@ -30,21 +31,23 @@
|
|
|
30
31
|
"build": "bun run build:ts && bun run build:es",
|
|
31
32
|
"build:es": "nano-build --preset=module src/main.ts",
|
|
32
33
|
"build:ts": "tsc --build",
|
|
33
|
-
"
|
|
34
|
-
"cb": "bun run clean && bun run build",
|
|
34
|
+
"cl": "bun run clean",
|
|
35
35
|
"clean": "rm -rfv dist *.tsbuildinfo",
|
|
36
|
-
"
|
|
36
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
37
|
+
"lint": "eslint src/ --ext .ts",
|
|
38
|
+
"t": "bun run test",
|
|
39
|
+
"test": "ALWATR_DEBUG=0 bun test",
|
|
37
40
|
"w": "bun run watch",
|
|
38
41
|
"watch": "bun run watch:ts & bun run watch:es",
|
|
39
42
|
"watch:es": "bun run build:es --watch",
|
|
40
43
|
"watch:ts": "bun run build:ts --watch --preserveWatchOutput"
|
|
41
44
|
},
|
|
42
45
|
"files": [
|
|
43
|
-
"
|
|
46
|
+
"dist",
|
|
47
|
+
"src/**/*.ts",
|
|
48
|
+
"!src/**/*.test.ts",
|
|
44
49
|
"README.md",
|
|
45
|
-
"LICENSE"
|
|
46
|
-
"!demo/**/*",
|
|
47
|
-
"!**/*.test.js"
|
|
50
|
+
"LICENSE"
|
|
48
51
|
],
|
|
49
52
|
"publishConfig": {
|
|
50
53
|
"access": "public"
|
|
@@ -70,6 +73,5 @@
|
|
|
70
73
|
"utility",
|
|
71
74
|
"utils"
|
|
72
75
|
],
|
|
73
|
-
"
|
|
74
|
-
"gitHead": "95bb13efd0a5f485c6b09f1a911b99492017aed1"
|
|
76
|
+
"gitHead": "4a25cd3e0499cf61dd761e87d3711abf9b0cd208"
|
|
75
77
|
}
|