Skip to content

Commit 189c73e

Browse files
fix : Api entry name error
1 parent 26463e2 commit 189c73e

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

dist/entry.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.XmlAreaApi = exports.UrlAreaApi = exports.TextAreaApi = void 0;
3+
exports.XmlArea = exports.UrlArea = exports.TextArea = void 0;
44
const TextAreaApi_1 = require("./api/TextAreaApi");
5-
Object.defineProperty(exports, "TextAreaApi", { enumerable: true, get: function () { return TextAreaApi_1.TextAreaApi; } });
5+
Object.defineProperty(exports, "TextArea", { enumerable: true, get: function () { return TextAreaApi_1.TextAreaApi; } });
66
const UrlAreaApi_1 = require("./api/UrlAreaApi");
7-
Object.defineProperty(exports, "UrlAreaApi", { enumerable: true, get: function () { return UrlAreaApi_1.UrlAreaApi; } });
7+
Object.defineProperty(exports, "UrlArea", { enumerable: true, get: function () { return UrlAreaApi_1.UrlAreaApi; } });
88
const XmlAreaApi_1 = require("./api/XmlAreaApi");
9-
Object.defineProperty(exports, "XmlAreaApi", { enumerable: true, get: function () { return XmlAreaApi_1.XmlAreaApi; } });
9+
Object.defineProperty(exports, "XmlArea", { enumerable: true, get: function () { return XmlAreaApi_1.XmlAreaApi; } });

dist/url-knife.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "url-knife",
3-
"version": "4.1.2",
3+
"version": "4.1.3",
44
"description": "Extract and decompose (fuzzy) URLs (including emails, which are conceptually a part of URLs) in texts with robust patterns.",
55
"main": "src/entry.ts",
66
"scripts": {

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
<div id="ta" contenteditable="true" style="margin-top: 3%"></div>-->
135135

136136
<script class="jsbin" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
137+
<!--<script src="https://cdn.jsdelivr.net/gh/patternknife/url-knife@4.1.3/dist/url-knife.bundle.min.js"></script>-->
137138
<script src="../dist/url-knife.bundle.js"></script>
138139
<script type="text/javascript">
139140

src/entry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import {UrlAreaApi} from "./api/UrlAreaApi";
33
import {XmlAreaApi} from "./api/XmlAreaApi";
44

55
export {
6-
TextAreaApi, UrlAreaApi, XmlAreaApi
6+
TextAreaApi as TextArea, UrlAreaApi as UrlArea, XmlAreaApi as XmlArea
77
};

test/test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {TextAreaApi, UrlAreaApi} from "../src/entry";
1+
import {TextArea, UrlArea} from "../src/entry";
22

33
const assert = require('assert');
44

@@ -24,11 +24,11 @@ describe('BDD style (URL,EMAIL)', function() {
2424

2525
describe('UrlArea', function() {
2626
it('normalizeUrl', function() {
27-
expect(UrlAreaApi.normalizeUrl("htp/:/abcgermany.,def;:9094 #park//noon??abc=retry").normalizedUrl)
27+
expect(UrlArea.normalizeUrl("htp/:/abcgermany.,def;:9094 #park//noon??abc=retry").normalizedUrl)
2828
.toBe("http://abcgermany.de:9094#park/noon?abc=retry");
2929
});
3030
it('parseUrl', function() {
31-
expect(UrlAreaApi.parseUrl("xtp://gooppalgo.com/park/tree/?abc=1").onlyUriWithParams)
31+
expect(UrlArea.parseUrl("xtp://gooppalgo.com/park/tree/?abc=1").onlyUriWithParams)
3232
.toBe("/park/tree/?abc=1");
3333
});
3434
});
@@ -46,7 +46,7 @@ describe('BDD style (URL,EMAIL)', function() {
4646

4747

4848
it('extractAllUrls', function() {
49-
assert.deepEqual(TextAreaApi.extractAllUrls(textStr), [
49+
assert.deepEqual(TextArea.extractAllUrls(textStr), [
5050
{
5151
"value": {
5252
"url": "http://[::1]:8000",
@@ -311,7 +311,7 @@ describe('BDD style (URL,EMAIL)', function() {
311311
});
312312

313313
it('extractAllUrlsWithIntranets', function() {
314-
assert.deepEqual(TextAreaApi.extractAllUrls(textStr, {ipV4 : false, ipV6 :false, localhost : false, intranet : true}), [
314+
assert.deepEqual(TextArea.extractAllUrls(textStr, {ipV4 : false, ipV6 :false, localhost : false, intranet : true}), [
315315
{
316316
"value": {
317317
"url": "http://[::1]:8000",
@@ -635,7 +635,7 @@ describe('BDD style (URL,EMAIL)', function() {
635635
});
636636

637637
it('extractAllEmails', function() {
638-
assert.deepEqual(TextAreaApi.extractAllEmails(textStr, true), [
638+
assert.deepEqual(TextArea.extractAllEmails(textStr, true), [
639639
{
640640
"value": {
641641
"email": "가나다@apacbook.ac.kr",
@@ -724,7 +724,7 @@ describe('BDD style (URI)', function() {
724724
* @return array
725725
*/
726726
it('extractCertainUris', function() {
727-
const uris = TextAreaApi.extractCertainUris(
727+
const uris = TextArea.extractCertainUris(
728728
sampleText2,
729729
[['{number}', 'kak'], ['nice', 'guy'], ['abc', '{number}']],
730730
true

0 commit comments

Comments
 (0)