@azure-tools/rlc-common 0.13.3 → 0.13.4

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,3 +1,3 @@
1
1
  {
2
- "nonCachedDurationMs": 6613.154929000011
2
+ "nonCachedDurationMs": 7895.242514000041
3
3
  }
@@ -3,10 +3,10 @@
3
3
  "packages/rlc-common/.eslintrc.json": "9fa7b6e2fbe4e63955031b8f8556b51c0a16a46b",
4
4
  "packages/rlc-common/.prettierignore": "0f7a61c11bf3ac442a984b1136525710e0ebf6d3",
5
5
  "packages/rlc-common/.prettierrc": "83e03202b2f3ad5b8df166a965fea698eccb0f90",
6
- "packages/rlc-common/CHANGELOG.md": "b5d06202d3818273d8cb145047cd82354daa67dd",
6
+ "packages/rlc-common/CHANGELOG.md": "afc111dee4c881da5339018cb889ee7747eb33ed",
7
7
  "packages/rlc-common/CONTRIBUTING.md": "1e6cd52a747c7461956721c6d6b64466608a33ab",
8
8
  "packages/rlc-common/README.md": "4089f33033d3351a176a9d9c6dcaff93cbe9514d",
9
- "packages/rlc-common/package.json": "1e416a9e98ea89df01b3367267a4c980fdea699a",
9
+ "packages/rlc-common/package.json": "9b864a94d2d1d52f796a169b3b426b594761c86a",
10
10
  "packages/rlc-common/publishPackage.js": "3512e26d1199937b1962f3b4189aa9c506d9da1a",
11
11
  "packages/rlc-common/src/buildClient.ts": "576075adc1df556d2e9cebbf383c0948a288c0d9",
12
12
  "packages/rlc-common/src/buildClientDefinitions.ts": "9d57b0bb46ce84fd442bf4cc0e3631de48778bf2",
@@ -40,7 +40,7 @@
40
40
  "packages/rlc-common/src/metadata/buildTsConfig.ts": "861d8af19f1e8658b7fef02b51c63d4f006c76f3",
41
41
  "packages/rlc-common/src/static/paginateContent.ts": "48f146c05b7b803958dc1206680b7b6ce38010c5",
42
42
  "packages/rlc-common/src/static/pollingContent.ts": "0b54874b29a5a07f8f725a49642541c9bc818f05",
43
- "packages/rlc-common/src/static/serializeHelper.ts": "27974ea5a9e540512e791412c0395731b2e8b9c8",
43
+ "packages/rlc-common/src/static/serializeHelper.ts": "185dd00d6ba2fc8eb5f1ca6b96c7f6594a280b3a",
44
44
  "packages/rlc-common/src/test/buildEnvFile.ts": "4759b68f0216d2e060810b045baf47b6d5ecf849",
45
45
  "packages/rlc-common/src/test/buildKarmaConfig.ts": "494c6a2b6621fe162d4e9c29706a4ceead343555",
46
46
  "packages/rlc-common/src/test/buildRecordedClient.ts": "fb4b5bb7f98d42fe15dd040a8ddbdf2b00a7cebe",
@@ -49,7 +49,7 @@
49
49
  "packages/rlc-common/tsconfig-cjs.json": "dc2e21bca1015edfa25099555abdf3ee2266c7da",
50
50
  "packages/rlc-common/tsconfig-common.json": "84c874d137a56103d2fa8b5ab33744e25540874c",
51
51
  "packages/rlc-common/tsconfig.json": "2ce338052b40a33cef04fa132458b8630ae1a809",
52
- "packages/rlc-common/.rush/temp/shrinkwrap-deps.json": "f0c2b742f77687838b2ef743933f8314eec8bb07"
52
+ "packages/rlc-common/.rush/temp/shrinkwrap-deps.json": "2dc4b75f44f787ec74777aec8c51ad659b6bae5b"
53
53
  },
54
54
  "arguments": "rimraf dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js "
55
55
  }
@@ -1,10 +1,11 @@
1
1
  {
2
- "../../packages/rlc-common": "../../packages/rlc-common:38WJ8TcUQRTz9cldjcgqGAyluxXklsi96FbpcGjqsMQ=:",
2
+ "../../packages/rlc-common": "../../packages/rlc-common:2dlZSKVWbBzknVADvtIZnsYDbWHwOjdbYGLmJ+zkCFI=:",
3
+ "/@aashutoshrathi/word-wrap/1.2.6": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==",
3
4
  "/@cspotcode/source-map-support/0.8.1": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
4
- "/@eslint-community/eslint-utils/4.4.0_eslint@8.42.0": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==",
5
+ "/@eslint-community/eslint-utils/4.4.0_eslint@8.43.0": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==",
5
6
  "/@eslint-community/regexpp/4.5.1": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==",
6
7
  "/@eslint/eslintrc/2.0.3": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==",
7
- "/@eslint/js/8.42.0": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==",
8
+ "/@eslint/js/8.43.0": "sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==",
8
9
  "/@humanwhocodes/config-array/0.11.10": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==",
9
10
  "/@humanwhocodes/module-importer/1.0.1": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
10
11
  "/@humanwhocodes/object-schema/1.2.1": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
@@ -21,10 +22,10 @@
21
22
  "/@tsconfig/node16/1.0.4": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
22
23
  "/@types/fs-extra/8.1.2": "sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==",
23
24
  "/@types/lodash/4.14.195": "sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg==",
24
- "/@types/node/18.16.16": "sha512-NpaM49IGQQAUlBhHMF82QH80J08os4ZmyF9MkpCzWAGuOHqE4gTEbhzd7L3l5LmWuZ6E0OiC1FweQ4tsiW35+g==",
25
- "/acorn-jsx/5.3.2_acorn@8.8.2": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
25
+ "/@types/node/18.16.18": "sha512-/aNaQZD0+iSBAGnvvN2Cx92HqE5sZCPZtx2TsK+4nvV23fFe09jVDvpArXr2j9DnYlzuU9WuoykDDc6wqvpNcw==",
26
+ "/acorn-jsx/5.3.2_acorn@8.9.0": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
26
27
  "/acorn-walk/8.2.0": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==",
27
- "/acorn/8.8.2": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==",
28
+ "/acorn/8.9.0": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==",
28
29
  "/ajv/6.12.6": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
29
30
  "/ansi-regex/5.0.1": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
30
31
  "/ansi-styles/4.3.0": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
@@ -49,7 +50,7 @@
49
50
  "/escape-string-regexp/4.0.0": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
50
51
  "/eslint-scope/7.2.0": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==",
51
52
  "/eslint-visitor-keys/3.4.1": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==",
52
- "/eslint/8.42.0": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==",
53
+ "/eslint/8.43.0": "sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==",
53
54
  "/espree/9.5.2": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==",
54
55
  "/esquery/1.5.0": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==",
55
56
  "/esrecurse/4.3.0": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
@@ -104,7 +105,7 @@
104
105
  "/natural-compare/1.4.0": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
105
106
  "/neo-async/2.6.2": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
106
107
  "/once/1.4.0": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
107
- "/optionator/0.9.1": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==",
108
+ "/optionator/0.9.3": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==",
108
109
  "/p-limit/3.1.0": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
109
110
  "/p-locate/5.0.0": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
110
111
  "/parent-module/1.0.1": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
@@ -130,7 +131,7 @@
130
131
  "/text-table/0.2.0": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
131
132
  "/to-regex-range/5.0.1": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
132
133
  "/ts-morph/15.1.0": "sha512-RBsGE2sDzUXFTnv8Ba22QfeuKbgvAGJFuTN7HfmIRUkgT/NaVLfDM/8OFm2NlFkGlWEXdpW5OaFIp1jvqdDuOg==",
133
- "/ts-node/10.9.1_7pk5zqybkp63ari366oqmheeyy": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==",
134
+ "/ts-node/10.9.1_4uew32ycfo2fh6gir7d6cnvhsq": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==",
134
135
  "/type-check/0.4.0": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
135
136
  "/type-fest/0.20.2": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
136
137
  "/typescript/5.0.4": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
@@ -139,7 +140,6 @@
139
140
  "/uri-js/4.4.1": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
140
141
  "/v8-compile-cache-lib/3.0.1": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
141
142
  "/which/2.0.2": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
142
- "/word-wrap/1.2.3": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
143
143
  "/wordwrap/1.0.0": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==",
144
144
  "/wrappy/1.0.2": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
145
145
  "/yn/3.1.1": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.13.4 (2023-06-30)
2
+
3
+ - [Feature] Ignore client.tsp in RLC generation. Please refer to pr [#1896](https://github.com/Azure/autorest.typescript/pull/1896).
4
+ - [Feature] Add collection format helper for number array. Please refer to pr [#1907](https://github.com/Azure/autorest.typescript/pull/1907).
5
+ - [Bugfix] Fix core error model generation failure during deserialization in Modular generation. Please refer to pr [#1904](https://github.com/Azure/autorest.typescript/pull/1904).
6
+
1
7
  ## 0.13.3 (2023-06-14)
2
8
 
3
9
  - [Bugfix] Fix isUnexpected helper function in health insights case. Please refer to pr [#1889](https://github.com/Azure/autorest.typescript/pull/1889).
package/dist/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@azure-tools/rlc-common","version":"0.13.3","description":"","type":"commonjs","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc src/**/*.ts","build":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","dependencies":{"ts-morph":"^15.1.0","lodash":"^4.17.21","handlebars":"^4.7.7"},"devDependencies":{"@types/node":"^18.0.0","eslint":"^8.9.0","prettier":"~2.7.1","typescript":"~5.0.0","rimraf":"^3.0.2","@types/lodash":"^4.14.182","fs-extra":"^10.0.0","@types/fs-extra":"^8.1.0","ts-node":"^10.7.0"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
1
+ {"name":"@azure-tools/rlc-common","version":"0.13.4","description":"","type":"commonjs","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc src/**/*.ts","build":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","dependencies":{"ts-morph":"^15.1.0","lodash":"^4.17.21","handlebars":"^4.7.7"},"devDependencies":{"@types/node":"^18.0.0","eslint":"^8.9.0","prettier":"~2.7.1","typescript":"~5.0.0","rimraf":"^3.0.2","@types/lodash":"^4.14.182","fs-extra":"^10.0.0","@types/fs-extra":"^8.1.0","ts-node":"^10.7.0"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
@@ -16,19 +16,19 @@ export function buildMultiCollection(
16
16
  .join("&");
17
17
  }`;
18
18
  exports.buildPipeCollectionContent = `
19
- export function buildPipeCollection(items: string[]): string {
19
+ export function buildPipeCollection(items: string[] | number[]): string {
20
20
  return items.join("|");
21
21
  }`;
22
22
  exports.buildSsvCollectionContent = `
23
- export function buildSsvCollection(items: string[]): string {
23
+ export function buildSsvCollection(items: string[] | number[]): string {
24
24
  return items.join(" ");
25
25
  }`;
26
26
  exports.buildTsvCollectionContent = `
27
- export function buildTsvCollection(items: string[]) {
27
+ export function buildTsvCollection(items: string[] | number[]) {
28
28
  return items.join("\\t");
29
29
  }`;
30
30
  exports.buildCsvCollectionContent = `
31
- export function buildCsvCollection(items: string[]) {
31
+ export function buildCsvCollection(items: string[] | number[]) {
32
32
  return items.join(",");
33
33
  }`;
34
34
  //# sourceMappingURL=serializeHelper.js.map
@@ -1 +1 @@
1
- {"name":"@azure-tools/rlc-common","version":"0.13.3","description":"","type":"module","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc src/**/*.ts","build":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","dependencies":{"ts-morph":"^15.1.0","lodash":"^4.17.21","handlebars":"^4.7.7"},"devDependencies":{"@types/node":"^18.0.0","eslint":"^8.9.0","prettier":"~2.7.1","typescript":"~5.0.0","rimraf":"^3.0.2","@types/lodash":"^4.14.182","fs-extra":"^10.0.0","@types/fs-extra":"^8.1.0","ts-node":"^10.7.0"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
1
+ {"name":"@azure-tools/rlc-common","version":"0.13.4","description":"","type":"module","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc src/**/*.ts","build":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","dependencies":{"ts-morph":"^15.1.0","lodash":"^4.17.21","handlebars":"^4.7.7"},"devDependencies":{"@types/node":"^18.0.0","eslint":"^8.9.0","prettier":"~2.7.1","typescript":"~5.0.0","rimraf":"^3.0.2","@types/lodash":"^4.14.182","fs-extra":"^10.0.0","@types/fs-extra":"^8.1.0","ts-node":"^10.7.0"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
@@ -13,19 +13,19 @@ export function buildMultiCollection(
13
13
  .join("&");
14
14
  }`;
15
15
  export const buildPipeCollectionContent = `
16
- export function buildPipeCollection(items: string[]): string {
16
+ export function buildPipeCollection(items: string[] | number[]): string {
17
17
  return items.join("|");
18
18
  }`;
19
19
  export const buildSsvCollectionContent = `
20
- export function buildSsvCollection(items: string[]): string {
20
+ export function buildSsvCollection(items: string[] | number[]): string {
21
21
  return items.join(" ");
22
22
  }`;
23
23
  export const buildTsvCollectionContent = `
24
- export function buildTsvCollection(items: string[]) {
24
+ export function buildTsvCollection(items: string[] | number[]) {
25
25
  return items.join("\\t");
26
26
  }`;
27
27
  export const buildCsvCollectionContent = `
28
- export function buildCsvCollection(items: string[]) {
28
+ export function buildCsvCollection(items: string[] | number[]) {
29
29
  return items.join(",");
30
30
  }`;
31
31
  //# sourceMappingURL=serializeHelper.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/rlc-common",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -14,21 +14,21 @@ export function buildMultiCollection(
14
14
  }`;
15
15
 
16
16
  export const buildPipeCollectionContent = `
17
- export function buildPipeCollection(items: string[]): string {
17
+ export function buildPipeCollection(items: string[] | number[]): string {
18
18
  return items.join("|");
19
19
  }`;
20
20
 
21
21
  export const buildSsvCollectionContent = `
22
- export function buildSsvCollection(items: string[]): string {
22
+ export function buildSsvCollection(items: string[] | number[]): string {
23
23
  return items.join(" ");
24
24
  }`;
25
25
 
26
26
  export const buildTsvCollectionContent = `
27
- export function buildTsvCollection(items: string[]) {
27
+ export function buildTsvCollection(items: string[] | number[]) {
28
28
  return items.join("\\t");
29
29
  }`;
30
30
 
31
31
  export const buildCsvCollectionContent = `
32
- export function buildCsvCollection(items: string[]) {
32
+ export function buildCsvCollection(items: string[] | number[]) {
33
33
  return items.join(",");
34
34
  }`;
@@ -1,5 +1,5 @@
1
1
  export declare const buildMultiCollectionContent = "\nexport function buildMultiCollection(\n items: string[],\n parameterName: string\n) {\n return items\n .map((item, index) => {\n if (index === 0) {\n return item;\n }\n return `${parameterName}=${item}`;\n })\n .join(\"&\");\n}";
2
- export declare const buildPipeCollectionContent = "\nexport function buildPipeCollection(items: string[]): string {\n return items.join(\"|\");\n}";
3
- export declare const buildSsvCollectionContent = "\nexport function buildSsvCollection(items: string[]): string {\n return items.join(\" \");\n}";
4
- export declare const buildTsvCollectionContent = "\nexport function buildTsvCollection(items: string[]) {\n return items.join(\"\\t\");\n}";
5
- export declare const buildCsvCollectionContent = "\nexport function buildCsvCollection(items: string[]) {\n return items.join(\",\");\n}";
2
+ export declare const buildPipeCollectionContent = "\nexport function buildPipeCollection(items: string[] | number[]): string {\n return items.join(\"|\");\n}";
3
+ export declare const buildSsvCollectionContent = "\nexport function buildSsvCollection(items: string[] | number[]): string {\n return items.join(\" \");\n}";
4
+ export declare const buildTsvCollectionContent = "\nexport function buildTsvCollection(items: string[] | number[]) {\n return items.join(\"\\t\");\n}";
5
+ export declare const buildCsvCollectionContent = "\nexport function buildCsvCollection(items: string[] | number[]) {\n return items.join(\",\");\n}";