@alwatr/flat-string 1.0.2 → 1.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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.3](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.2...@alwatr/flat-string@1.0.3) (2023-12-22)
7
+
8
+ ### Bug Fixes
9
+
10
+ * package.json include files ([ec8c807](https://github.com/Alwatr/nanolib/commit/ec8c8075ea88d669a84037077b01f92f6ea078f1)) by @
11
+
6
12
  ## [1.0.2](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.1...@alwatr/flat-string@1.0.2) (2023-12-22)
7
13
 
8
14
  ### Bug Fixes
package/dist/main.cjs ADDED
@@ -0,0 +1,3 @@
1
+ /* @alwatr/flat-string v1.0.3 */
2
+ "use strict";var g=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var a=(n,t)=>{for(var i in t)g(n,i,{get:t[i],enumerable:!0})},c=(n,t,i,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of o(t))!u.call(n,r)&&r!==i&&g(n,r,{get:()=>t[r],enumerable:!(e=f(t,r))||e.enumerable});return n};var l=n=>c(g({},"__esModule",{value:!0}),n);var s={};a(s,{flatString:()=>p});module.exports=l(s);function p(n){return n|0,n}0&&(module.exports={flatString});
3
+ //# sourceMappingURL=main.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/main.ts"],
4
+ "sourcesContent": ["/**\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"],
5
+ "mappings": ";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GAUO,SAASE,EAAWE,EAAqB,CAE9C,OAAAA,EAAM,EACCA,CACT",
6
+ "names": ["main_exports", "__export", "flatString", "__toCommonJS", "str"]
7
+ }
package/dist/main.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This function simplifies the complex C structures that are part of a combined JavaScript string.
3
+ *
4
+ * @param str The string to flatten.
5
+ * @returns The flattened string.
6
+ * @example
7
+ * ```typescript
8
+ * myStr = flatString(myStr);
9
+ * ```
10
+ */
11
+ export declare function flatString(str: string): string;
12
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI9C"}
package/dist/main.mjs ADDED
@@ -0,0 +1,3 @@
1
+ /* @alwatr/flat-string v1.0.3 */
2
+ function t(n){return n|0,n}export{t as flatString};
3
+ //# sourceMappingURL=main.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/main.ts"],
4
+ "sourcesContent": ["/**\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"],
5
+ "mappings": ";AAUO,SAASA,EAAWC,EAAqB,CAE9C,OAAAA,EAAM,EACCA,CACT",
6
+ "names": ["flatString", "str"]
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwatr/flat-string",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "The `flat-string` function flattens the underlying C structures of a concatenated JavaScript string.",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "keywords": [
@@ -27,10 +27,8 @@
27
27
  },
28
28
  "license": "MIT",
29
29
  "files": [
30
- "package.json",
31
- "README.md",
32
- "CHANGELOG.md",
33
- "dist/**/*"
30
+ "**/*.{js,mjs,cjs,map,d.ts,html,md}",
31
+ "!demo/**/*"
34
32
  ],
35
33
  "publishConfig": {
36
34
  "access": "public"
@@ -60,10 +58,10 @@
60
58
  "clean": "rm -rfv dist .tsbuildinfo"
61
59
  },
62
60
  "devDependencies": {
63
- "@alwatr/nano-build": "^1.0.2",
64
- "@alwatr/prettier-config": "^1.0.2",
65
- "@alwatr/tsconfig-base": "^1.0.2",
61
+ "@alwatr/nano-build": "^1.0.3",
62
+ "@alwatr/prettier-config": "^1.0.3",
63
+ "@alwatr/tsconfig-base": "^1.0.3",
66
64
  "typescript": "^5.3.3"
67
65
  },
68
- "gitHead": "db09e86c37b72ccdfba24098a29e49b0834535a6"
66
+ "gitHead": "1d09455da68f4f5ad0109d839a4fa5281fcb8213"
69
67
  }