@swagger-api/apidom-parser-adapter-openapi-json-3-1 0.76.1 → 0.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import { isNotUndefined } from 'ramda-adjunct';
3
3
  import { createNamespace } from '@swagger-api/apidom-core';
4
4
  import { parse as parseJSON, detect as detectJSON } from '@swagger-api/apidom-parser-adapter-json';
5
5
  import openApiNamespace, { OpenApi3_1Element } from '@swagger-api/apidom-ns-openapi-3-1';
6
- export { default as mediaTypes } from "./media-types.js";
6
+ export { default as mediaTypes } from "./media-types.mjs";
7
7
  export const detectionRegExp = /"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;
8
8
  export const detect = async source => detectionRegExp.test(source) && (await detectJSON(source));
9
9
  export const parse = async (source, options = {}) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swagger-api/apidom-parser-adapter-openapi-json-3-1",
3
- "version": "0.76.1",
3
+ "version": "0.77.0",
4
4
  "description": "Parser adapter for parsing JSON documents into OpenAPI 3.1.x namespace.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -12,15 +12,15 @@
12
12
  "main": "./cjs/adapter.cjs",
13
13
  "exports": {
14
14
  "types": "./types/dist.d.ts",
15
- "import": "./es/adapter.js",
15
+ "import": "./es/adapter.mjs",
16
16
  "require": "./cjs/adapter.cjs"
17
17
  },
18
18
  "types": "./types/dist.d.ts",
19
19
  "scripts": {
20
20
  "build": "npm run clean && run-p --max-parallel ${CPU_CORES:-2} typescript:declaration build:es build:cjs build:umd:browser",
21
- "build:es": "cross-env BABEL_ENV=es babel src --out-dir es --extensions '.ts' --root-mode 'upward'",
21
+ "build:es": "cross-env BABEL_ENV=es babel src --out-dir es --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward'",
22
22
  "build:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.ts' --out-file-extension '.cjs' --root-mode 'upward'",
23
- "build:umd:browser": "cross-env BABEL_ENV=browser BROWSERSLIST_ENV=production webpack --config config/webpack/browser.config.js --progress",
23
+ "build:umd:browser": "cross-env BABEL_ENV=browser webpack --config config/webpack/browser.config.js --progress",
24
24
  "lint": "eslint ./",
25
25
  "lint:fix": "eslint ./ --fix",
26
26
  "clean": "rimraf ./es ./cjs ./dist ./types",
@@ -43,9 +43,9 @@
43
43
  "license": "Apache-2.0",
44
44
  "dependencies": {
45
45
  "@babel/runtime-corejs3": "^7.20.7",
46
- "@swagger-api/apidom-core": "^0.76.1",
47
- "@swagger-api/apidom-ns-openapi-3-1": "^0.76.1",
48
- "@swagger-api/apidom-parser-adapter-json": "^0.76.1",
46
+ "@swagger-api/apidom-core": "^0.77.0",
47
+ "@swagger-api/apidom-ns-openapi-3-1": "^0.77.0",
48
+ "@swagger-api/apidom-parser-adapter-json": "^0.77.0",
49
49
  "@types/ramda": "~0.29.3",
50
50
  "ramda": "~0.29.0",
51
51
  "ramda-adjunct": "^4.0.0"
@@ -60,5 +60,5 @@
60
60
  "README.md",
61
61
  "CHANGELOG.md"
62
62
  ],
63
- "gitHead": "33290820a04e212ffb88da36abaa8cc1fb06892f"
63
+ "gitHead": "cd8a9d7d2ea8bb8c335c23cd4632830a79c426c9"
64
64
  }
File without changes