Skip to content

Commit 77d8ecc

Browse files
committed
type: export StarkString
1 parent 601ab5a commit 77d8ecc

3 files changed

Lines changed: 25 additions & 79 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
"eslint-plugin-prettier": "3.1.4",
4040
"jest": "26.0.1",
4141
"prettier": "2.0.5",
42-
"prettier-plugin-jsdoc": "^0.0.21",
42+
"prettier-plugin-jsdoc": "^0.2.0",
4343
"ts-jest": "25.5.1",
44-
"typescript": "3.9.7"
44+
"typescript": "^4.0.3"
4545
},
4646
"scripts": {
4747
"prepare": "yarn build",
4848
"build": "tsc",
4949
"test": "yarn build && jest"
5050
}
51-
}
51+
}

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,5 @@ class StarkString extends NativeString {
144144
//Expose StarkString
145145
//CommonJS module is defined
146146
export default starkString;
147+
148+
export type {StarkString}

yarn.lock

Lines changed: 20 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
semver "^5.4.1"
4747
source-map "^0.5.0"
4848

49-
"@babel/core@^7.2.2", "@babel/core@^7.7.5":
49+
"@babel/core@^7.7.5":
5050
version "7.11.1"
5151
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.11.1.tgz#2c55b604e73a40dc21b0e52650b11c65cf276643"
5252
integrity sha512-XqF7F6FWQdKGGWAzGELL+aCO1p+lRY5Tj5/tbT3St1G8NaH70jhhDIKknIZaDans0OQBG5wRAldROLHSt44BgQ==
@@ -347,7 +347,7 @@
347347
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.8.4.tgz#d1dbe64691d60358a974295fa53da074dd2ce8e8"
348348
integrity sha512-0fKu/QqildpXmPVaRBoXOlyBb3MC+J0A66x97qEfLOMkn3u6nfY5esWogQwi/K0BjASYy4DbnsEWnpNL6qT5Mw==
349349

350-
"@babel/parser@^7.10.4", "@babel/parser@^7.11.0", "@babel/parser@^7.11.1", "@babel/parser@^7.5.5", "@babel/parser@^7.7.0":
350+
"@babel/parser@^7.10.4", "@babel/parser@^7.11.0", "@babel/parser@^7.11.1", "@babel/parser@^7.7.0":
351351
version "7.11.2"
352352
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.2.tgz#0882ab8a455df3065ea2dcb4c753b2460a24bead"
353353
integrity sha512-Vuj/+7vLo6l1Vi7uuO+1ngCDNeVmNbTngcJFKCR/oEtz8tKz0CJxZEGmPt9KcIloZhOZ3Zit6xbpXT2MDlS9Vw==
@@ -908,7 +908,7 @@
908908
dependencies:
909909
regenerator-runtime "^0.13.4"
910910

911-
"@babel/template@^7.10.4", "@babel/template@^7.2.2", "@babel/template@^7.3.3":
911+
"@babel/template@^7.10.4", "@babel/template@^7.3.3":
912912
version "7.10.4"
913913
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.10.4.tgz#3251996c4200ebc71d1a8fc405fba940f36ba278"
914914
integrity sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==
@@ -941,7 +941,7 @@
941941
globals "^11.1.0"
942942
lodash "^4.17.13"
943943

944-
"@babel/traverse@^7.10.4", "@babel/traverse@^7.11.0", "@babel/traverse@^7.2.3", "@babel/traverse@^7.7.0":
944+
"@babel/traverse@^7.10.4", "@babel/traverse@^7.11.0", "@babel/traverse@^7.7.0":
945945
version "7.11.0"
946946
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.11.0.tgz#9b996ce1b98f53f7c3e4175115605d56ed07dd24"
947947
integrity sha512-ZB2V+LskoWKNpMq6E5UUCrjtDUh5IOTAyIl0dTjIEoXum/iKWkoIEKIRDnUucO6f+2FzNkE0oD4RLKoPIufDtg==
@@ -965,7 +965,7 @@
965965
lodash "^4.17.13"
966966
to-fast-properties "^2.0.0"
967967

968-
"@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.5.5", "@babel/types@^7.7.0":
968+
"@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0":
969969
version "7.11.0"
970970
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.0.tgz#2ae6bf1ba9ae8c3c43824e5861269871b206e90d"
971971
integrity sha512-O53yME4ZZI0jO1EVGtF1ePGl0LHirG4P1ibcD80XyzZcKhcMFeCXmh4Xb1ifGBIV233Qg12x4rBfQgA+tmOukA==
@@ -1682,19 +1682,6 @@ babel-eslint@10.1.0:
16821682
eslint-visitor-keys "^1.0.0"
16831683
resolve "^1.12.0"
16841684

1685-
babel-flow@^2.0.2:
1686-
version "2.0.2"
1687-
resolved "https://registry.yarnpkg.com/babel-flow/-/babel-flow-2.0.2.tgz#adc75204de6c1782bef19803ccbf69b97da27a2e"
1688-
integrity sha512-vrjpv4XO90aeC3LTUS2l4XX6OxWWgcS8FIvyD5KVUMwt3L67zELyEKXccYROHuzIkNxPt1oTvz6rdr+mtKGNcQ==
1689-
dependencies:
1690-
"@babel/core" "^7.2.2"
1691-
"@babel/parser" "^7.5.5"
1692-
"@babel/template" "^7.2.2"
1693-
"@babel/traverse" "^7.2.3"
1694-
"@babel/types" "^7.5.5"
1695-
execa "^2.0.3"
1696-
fs-extra "^8.1.0"
1697-
16981685
babel-jest@^24.9.0:
16991686
version "24.9.0"
17001687
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.9.0.tgz#3fc327cb8467b89d14d7bc70e315104a783ccd54"
@@ -2559,21 +2546,6 @@ execa@^1.0.0:
25592546
signal-exit "^3.0.0"
25602547
strip-eof "^1.0.0"
25612548

2562-
execa@^2.0.3:
2563-
version "2.1.0"
2564-
resolved "https://registry.yarnpkg.com/execa/-/execa-2.1.0.tgz#e5d3ecd837d2a60ec50f3da78fd39767747bbe99"
2565-
integrity sha512-Y/URAVapfbYy2Xp/gb6A0E7iR8xeqOCXsuuaoMn7A5PzrXUK84E1gyiEfq0wQd/GHA6GsoHWwhNq8anb0mleIw==
2566-
dependencies:
2567-
cross-spawn "^7.0.0"
2568-
get-stream "^5.0.0"
2569-
is-stream "^2.0.0"
2570-
merge-stream "^2.0.0"
2571-
npm-run-path "^3.0.0"
2572-
onetime "^5.1.0"
2573-
p-finally "^2.0.0"
2574-
signal-exit "^3.0.2"
2575-
strip-final-newline "^2.0.0"
2576-
25772549
execa@^4.0.0:
25782550
version "4.0.3"
25792551
resolved "https://registry.yarnpkg.com/execa/-/execa-4.0.3.tgz#0a34dabbad6d66100bd6f2c576c8669403f317f2"
@@ -2774,15 +2746,6 @@ fragment-cache@^0.2.1:
27742746
dependencies:
27752747
map-cache "^0.2.2"
27762748

2777-
fs-extra@^8.1.0:
2778-
version "8.1.0"
2779-
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
2780-
integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==
2781-
dependencies:
2782-
graceful-fs "^4.2.0"
2783-
jsonfile "^4.0.0"
2784-
universalify "^0.1.0"
2785-
27862749
fs.realpath@^1.0.0:
27872750
version "1.0.0"
27882751
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
@@ -2893,7 +2856,7 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2:
28932856
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423"
28942857
integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==
28952858

2896-
graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4:
2859+
graceful-fs@^4.2.4:
28972860
version "4.2.4"
28982861
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb"
28992862
integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==
@@ -3902,13 +3865,6 @@ json5@^2.1.0:
39023865
dependencies:
39033866
minimist "^1.2.0"
39043867

3905-
jsonfile@^4.0.0:
3906-
version "4.0.0"
3907-
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
3908-
integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=
3909-
optionalDependencies:
3910-
graceful-fs "^4.1.6"
3911-
39123868
jsprim@^1.2.2:
39133869
version "1.4.1"
39143870
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
@@ -3989,6 +3945,11 @@ lines-and-columns@^1.1.6:
39893945
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
39903946
integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=
39913947

3948+
linguist-languages@^7.11.0:
3949+
version "7.11.0"
3950+
resolved "https://registry.yarnpkg.com/linguist-languages/-/linguist-languages-7.11.0.tgz#c28bbbbcc620cf612ff96154402a80be027832a2"
3951+
integrity sha512-UJD5XvS+6oMIy2WiaDRJiHOFSozbKM+nzFxCbADU6qLjZqZHbOFZ7ELN+KsYmtDo66SYGz7rCfvj/oloxtcfdA==
3952+
39923953
load-json-file@^4.0.0:
39933954
version "4.0.0"
39943955
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b"
@@ -4263,13 +4224,6 @@ npm-run-path@^2.0.0:
42634224
dependencies:
42644225
path-key "^2.0.0"
42654226

4266-
npm-run-path@^3.0.0:
4267-
version "3.1.0"
4268-
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-3.1.0.tgz#7f91be317f6a466efed3c9f2980ad8a4ee8b0fa5"
4269-
integrity sha512-Dbl4A/VfiVGLgQv29URL9xshU8XDY1GeLy+fsaZ1AA8JDSfjvr5P5+pzRbWqRSBxk6/DW7MIh8lTM/PaGnP2kg==
4270-
dependencies:
4271-
path-key "^3.0.0"
4272-
42734227
npm-run-path@^4.0.0:
42744228
version "4.0.1"
42754229
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea"
@@ -4420,11 +4374,6 @@ p-finally@^1.0.0:
44204374
resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
44214375
integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=
44224376

4423-
p-finally@^2.0.0:
4424-
version "2.0.1"
4425-
resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-2.0.1.tgz#bd6fcaa9c559a096b680806f4d657b3f0f240561"
4426-
integrity sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==
4427-
44284377
p-limit@^2.0.0:
44294378
version "2.2.2"
44304379
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.2.tgz#61279b67721f5287aa1c13a9a7fbbc48c9291b1e"
@@ -4581,13 +4530,13 @@ prettier-linter-helpers@^1.0.0:
45814530
dependencies:
45824531
fast-diff "^1.1.2"
45834532

4584-
prettier-plugin-jsdoc@^0.0.21:
4585-
version "0.0.21"
4586-
resolved "https://registry.yarnpkg.com/prettier-plugin-jsdoc/-/prettier-plugin-jsdoc-0.0.21.tgz#ef2524d2ccf25765407d15a5725e2c6f1e9fbedd"
4587-
integrity sha512-oHgNUYHdGXuYLsreB6leQoHeER3sTQ6F8tncD25EaYDuHAHveEIQ1hbN+dqTb73FjOYtZNNQI9gVlGzUkzj6Eg==
4533+
prettier-plugin-jsdoc@^0.2.0:
4534+
version "0.2.0"
4535+
resolved "https://registry.yarnpkg.com/prettier-plugin-jsdoc/-/prettier-plugin-jsdoc-0.2.0.tgz#9a5b247ed6b6060eecb8129b19daf3c0dd07e00d"
4536+
integrity sha512-uZ3VUQumXtmDEaoio18slFAhz+Lp5FMn7r+X6xEZwCMKh4/jK4k61scPKEn8gAoftOon966Cx8wDapE/Jk61HA==
45884537
dependencies:
4589-
babel-flow "^2.0.2"
45904538
comment-parser "^0.7.5"
4539+
linguist-languages "^7.11.0"
45914540

45924541
prettier@2.0.5, prettier@^2.0.2:
45934542
version "2.0.5"
@@ -5522,10 +5471,10 @@ typedarray-to-buffer@^3.1.5:
55225471
dependencies:
55235472
is-typedarray "^1.0.0"
55245473

5525-
typescript@3.9.7:
5526-
version "3.9.7"
5527-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa"
5528-
integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==
5474+
typescript@^4.0.3:
5475+
version "4.0.3"
5476+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5"
5477+
integrity sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==
55295478

55305479
unicode-canonical-property-names-ecmascript@^1.0.4:
55315480
version "1.0.4"
@@ -5560,11 +5509,6 @@ union-value@^1.0.0:
55605509
is-extendable "^0.1.1"
55615510
set-value "^2.0.1"
55625511

5563-
universalify@^0.1.0:
5564-
version "0.1.2"
5565-
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
5566-
integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==
5567-
55685512
unset-value@^1.0.0:
55695513
version "1.0.0"
55705514
resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"

0 commit comments

Comments
 (0)