forked from asyncapi/parser-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove all previous parser code letting a fresh start for 2.0.0 (…
- Loading branch information
1 parent
0fb6dec
commit 60f1ef4
Showing
686 changed files
with
17,686 additions
and
52,290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
node_modules | ||
dist | ||
lib/browser.js | ||
scripts | ||
coverage | ||
.nyc_output | ||
test/sample_browser/ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
node_modules | ||
.vscode | ||
.nyc_output | ||
coverage | ||
.DS_Store | ||
test/sample_browser/bundle.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
test/ | ||
.DS_Store | ||
*.swp | ||
.github | ||
.all-contributorsrc | ||
.editorconfig | ||
coverage | ||
.nyc_output | ||
assets/logo.png | ||
scripts | ||
vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/*! | ||
* EventEmitter v5.2.9 - git.io/ee | ||
* Unlicense - http://unlicense.org/ | ||
* Oliver Caldwell - https://oli.me.uk/ | ||
* @preserve | ||
*/ | ||
|
||
/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <https://feross.org> | ||
* @license MIT | ||
*/ | ||
|
||
/*! | ||
* URI.js - Mutating URLs | ||
* | ||
* Version: 1.19.11 | ||
* | ||
* Author: Rodney Rehm | ||
* Web: http://medialize.github.io/URI.js/ | ||
* | ||
* Licensed under | ||
* MIT License http://www.opensource.org/licenses/mit-license | ||
* | ||
*/ | ||
|
||
/*! | ||
* URI.js - Mutating URLs | ||
* IPv6 Support | ||
* | ||
* Version: 1.19.11 | ||
* | ||
* Author: Rodney Rehm | ||
* Web: http://medialize.github.io/URI.js/ | ||
* | ||
* Licensed under | ||
* MIT License http://www.opensource.org/licenses/mit-license | ||
* | ||
*/ | ||
|
||
/*! | ||
* URI.js - Mutating URLs | ||
* Second Level Domain (SLD) Support | ||
* | ||
* Version: 1.19.11 | ||
* | ||
* Author: Rodney Rehm | ||
* Web: http://medialize.github.io/URI.js/ | ||
* | ||
* Licensed under | ||
* MIT License http://www.opensource.org/licenses/mit-license | ||
* | ||
*/ | ||
|
||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
|
||
/*! https://mths.be/punycode v1.4.0 by @mathias */ | ||
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/** | ||
* @license | ||
* Lodash <https://lodash.com/> | ||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/> | ||
* Released under MIT license <https://lodash.com/license> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
*/ | ||
|
||
/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export declare const xParserSpecParsed = "x-parser-spec-parsed"; | ||
export declare const xParserSpecStringified = "x-parser-spec-stringified"; | ||
export declare const xParserMessageName = "x-parser-message-name"; | ||
export declare const xParserMessageParsed = "x-parser-message-parsed"; | ||
export declare const xParserSchemaId = "x-parser-schema-id"; | ||
export declare const xParserOriginalSchemaFormat = "x-parser-original-schema-format"; | ||
export declare const xParserOriginalPayload = "x-parser-original-payload"; | ||
export declare const xParserOriginalTraits = "x-parser-original-traits"; | ||
export declare const xParserCircular = "x-parser-circular"; | ||
export declare const xParserCircularProps = "x-parser-circular-props"; | ||
export declare const EXTENSION_REGEX: RegExp; | ||
export declare const specVersions: string[]; | ||
export declare const lastVersion: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.lastVersion = exports.specVersions = exports.EXTENSION_REGEX = exports.xParserCircularProps = exports.xParserCircular = exports.xParserOriginalTraits = exports.xParserOriginalPayload = exports.xParserOriginalSchemaFormat = exports.xParserSchemaId = exports.xParserMessageParsed = exports.xParserMessageName = exports.xParserSpecStringified = exports.xParserSpecParsed = void 0; | ||
// @ts-ignore | ||
const specs_1 = __importDefault(require("@asyncapi/specs")); | ||
exports.xParserSpecParsed = 'x-parser-spec-parsed'; | ||
exports.xParserSpecStringified = 'x-parser-spec-stringified'; | ||
exports.xParserMessageName = 'x-parser-message-name'; | ||
exports.xParserMessageParsed = 'x-parser-message-parsed'; | ||
exports.xParserSchemaId = 'x-parser-schema-id'; | ||
exports.xParserOriginalSchemaFormat = 'x-parser-original-schema-format'; | ||
exports.xParserOriginalPayload = 'x-parser-original-payload'; | ||
exports.xParserOriginalTraits = 'x-parser-original-traits'; | ||
exports.xParserCircular = 'x-parser-circular'; | ||
exports.xParserCircularProps = 'x-parser-circular-props'; | ||
exports.EXTENSION_REGEX = /^x-[\w\d.\-_]+$/; | ||
// Only >=2.0.0 versions are supported | ||
exports.specVersions = Object.keys(specs_1.default).filter((version) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); | ||
exports.lastVersion = exports.specVersions[exports.specVersions.length - 1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import type { AsyncAPIDocumentInterface } from '../models'; | ||
export declare function anonymousNaming(document: AsyncAPIDocumentInterface): void; |
Oops, something went wrong.