8000 fix: fix references to constants - remove .js extension (#200) · lholmquist/sdk-javascript@c757a2b · GitHub
[go: up one dir, main page]

Skip to content

Commit c757a2b

Browse files
authored
fix: fix references to constants - remove .js extension (cloudevents#200)
Signed-off-by: Lance Ball <lball@redhat.com>
1 parent edad2a6 commit c757a2b

14 files changed

+14
-14
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ yarn-error.log*
88
# Generated files
99
*.d.ts
1010
index.js
11-
lib
11+
/lib
1212

1313
# Runtime data
1414
pids

src/lib/bindings/http/emitter_binary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const {
1111
DATA_ATTRIBUTE,
1212
SPEC_V1,
1313
SPEC_V03
14-
} = require("./constants.js");
14+
} = require("./constants");
1515

1616
const defaults = {
1717
[HEADERS]: {

src/lib/bindings/http/emitter_structured.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {
77
DEFAULT_CE_CONTENT_TYPE,
88
HEADERS,
99
HEADER_CONTENT_TYPE
10-
} = require("./constants.js");
10+
} = require("./constants");
1111

1212
const defaults = {
1313
[HEADERS]: {

src/lib/bindings/http/receiver_binary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const ReceiverV1 = require("./v1/receiver_binary_1.js");
22
const ReceiverV3 = require("./v03/receiver_binary_0_3.js");
33

4-
const { SPEC_V03, SPEC_V1 } = require("./constants.js");
4+
const { SPEC_V03, SPEC_V1 } = require("./constants");
55
const { check, parse } = require("./validation/binary.js");
66

77
/** @typedef {import("../../cloudevent")} CloudEvent */

src/lib/bindings/http/receiver_structured.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const ReceiverV1 = require("./v1/receiver_structured_1.js");
22
const ReceiverV3 = require("./v03/receiver_structured_0_3.js");
33

4-
const { SPEC_V03, SPEC_V1 } = require("./constants.js");
4+
const { SPEC_V03, SPEC_V1 } = require("./constants");
55
const { check, parse } = require("./validation/structured.js");
66

77
/** @typedef {import("../../cloudevent")} CloudEvent */

src/lib/bindings/http/v03/emitter_binary_0_3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const {
1010
TIME,
1111
SCHEMA_URL
1212
}
13-
} = require("../constants.js");
13+
} = require("../constants");
1414

1515
function parser(header, parser = (v) => v) {
1616
return { headerName: header, parse: parser };

src/lib/bindings/http/v03/receiver_binary_0_3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
ENCODING_BASE64,
66
HEADER_CONTENT_TYPE,
77
BINARY_HEADERS_03
8-
} = require("../constants.js");
8+
} = require("../constants");
99
const Spec = require("./spec_0_3.js");
1010

1111
const JSONParser = require("../../../formats/json/parser.js");

src/lib/bindings/http/v03/receiver_structured_0_3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {
1313
SUBJECT,
1414
DATA
1515
}
16-
} = require("../constants.js");
16+
} = require("../constants");
1717
const Spec = require("./spec_0_3.js");
1818
const JSONParser = require("../../../formats/json/parser.js");
1919

src/lib/bindings/http/v1/emitter_binary_1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const {
99
TIME,
1010
DATA_SCHEMA
1111
}
12-
} = require("../constants.js");
12+
} = require("../constants");
1313

1414
function parser(header, parser = (v) => v) {
1515
return { headerName: header, parse: parser };

src/lib/bindings/http/v1/receiver_structured_1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {
1313
DATA_BASE64,
1414
MIME_JSON
1515
}
16-
} = require("../constants.js");
16+
} = require("../constants");
1717

1818
const Spec = require("./spec_1.js");
1919
const JSONParser = require("../../../formats/json/parser.js");

0 commit comments

Comments
 (0)
0