Skip to content

Commit

Permalink
distinct cjs amd ems output using tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip Clark committed Oct 25, 2021
1 parent 456a172 commit bdca625
Show file tree
Hide file tree
Showing 32 changed files with 8,472 additions and 1,944 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/**/*.js
dist/
examples/
11 changes: 5 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{
"env": {
"browser": false,
"es6": true,
"node": true
"es2021": true,
"node": true,
"mocha": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"plugins": ["@typescript-eslint", "mocha"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {}
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2011-2018 Phillip Clark
Copyright (c) 2011-2021 Phillip Clark

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
24 changes: 0 additions & 24 deletions __tests__/.eslintrc.json

This file was deleted.

9 changes: 0 additions & 9 deletions __tests__/index.ts

This file was deleted.

48 changes: 24 additions & 24 deletions docs/classes/jsonpointer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3051,7 +3051,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L486">pointer.ts:486</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L486">pointer.ts:486</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3081,7 +3081,7 @@ <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> path</h3>
<div class="tsd-signature tsd-kind-icon">path<span class="tsd-signature-symbol">:</span> <a href="../modules.html#pathsegments" class="tsd-signature-type" data-tsd-kind="Type alias">PathSegments</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L486">pointer.ts:486</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L486">pointer.ts:486</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -3103,7 +3103,7 @@ <h3>pointer</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L612">pointer.ts:612</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L612">pointer.ts:612</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -3125,7 +3125,7 @@ <h3>uri<wbr>Fragment<wbr>Identifier</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L622">pointer.ts:622</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L622">pointer.ts:622</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -3150,7 +3150,7 @@ <h3>concat</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L601">pointer.ts:601</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L601">pointer.ts:601</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3181,7 +3181,7 @@ <h3>get</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L500">pointer.ts:500</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L500">pointer.ts:500</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3212,7 +3212,7 @@ <h3>has</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L536">pointer.ts:536</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L536">pointer.ts:536</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3243,7 +3243,7 @@ <h3>parent</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L544">pointer.ts:544</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L544">pointer.ts:544</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3274,7 +3274,7 @@ <h3>rel</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L578">pointer.ts:578</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L578">pointer.ts:578</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3312,7 +3312,7 @@ <h3>relative</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L556">pointer.ts:556</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L556">pointer.ts:556</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3344,7 +3344,7 @@ <h3>set</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L518">pointer.ts:518</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L518">pointer.ts:518</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3390,7 +3390,7 @@ <h3>to<wbr>String</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L632">pointer.ts:632</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L632">pointer.ts:632</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -3412,7 +3412,7 @@ <h3>unset</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L528">pointer.ts:528</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L528">pointer.ts:528</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3444,7 +3444,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> create</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L242">pointer.ts:242</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L242">pointer.ts:242</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3480,7 +3480,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> decode</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L396">pointer.ts:396</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L396">pointer.ts:396</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3511,7 +3511,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> flatten</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L453">pointer.ts:453</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L453">pointer.ts:453</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3548,7 +3548,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> get</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L294">pointer.ts:294</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L294">pointer.ts:294</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3596,7 +3596,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> has</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L265">pointer.ts:265</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L265">pointer.ts:265</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3644,7 +3644,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> list<wbr>Fragment<wbr>Ids
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L434">pointer.ts:434</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L434">pointer.ts:434</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3675,7 +3675,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> list<wbr>Pointers</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L418">pointer.ts:418</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L418">pointer.ts:418</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3706,7 +3706,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> map</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L473">pointer.ts:473</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L473">pointer.ts:473</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3743,7 +3743,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> set</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L340">pointer.ts:340</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L340">pointer.ts:340</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3817,7 +3817,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> unset</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L382">pointer.ts:382</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L382">pointer.ts:382</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3876,7 +3876,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> visit</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L406">pointer.ts:406</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L406">pointer.ts:406</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
12 changes: 6 additions & 6 deletions docs/classes/jsonreference.html
Original file line number Diff line number Diff line change
Expand Up @@ -2878,7 +2878,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L663">pointer.ts:663</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L663">pointer.ts:663</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2908,7 +2908,7 @@ <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> $ref</h3>
<div class="tsd-signature tsd-kind-icon">$ref<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L663">pointer.ts:663</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L663">pointer.ts:663</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2930,7 +2930,7 @@ <h3>pointer</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L687">pointer.ts:687</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L687">pointer.ts:687</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2952,7 +2952,7 @@ <h3>resolve</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L680">pointer.ts:680</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L680">pointer.ts:680</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2984,7 +2984,7 @@ <h3>to<wbr>String</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L694">pointer.ts:694</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L694">pointer.ts:694</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -3006,7 +3006,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> is<wbr>Reference</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/0c06aa1/src/pointer.ts#L651">pointer.ts:651</a></li>
<li>Defined in <a href="https://github.com/flitbit/json-ptr/blob/456a172/src/pointer.ts#L651">pointer.ts:651</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit bdca625

Please sign in to comment.