All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.package.json Maven / Gradle / Ivy

Go to download

Advanced algorithms for semantic ApiDOM manipulations like dereferencing or resolution.

There is a newer version: 1.0.0-alpha.9
Show newest version
{
  "name": "@swagger-api/apidom-reference",
  "version": "1.0.0-alpha.6",
  "description": "Advanced algorithms for semantic ApiDOM manipulations like dereferencing or resolution.",
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org"
  },
  "type": "module",
  "sideEffects": [
    "./es/configuration/saturated.mjs",
    "./cjs/configuration/saturated.cjs"
  ],
  "unpkg": "./dist/apidom-reference.browser.min.js",
  "browser": {
    "./cjs/parse/parsers/binary/index-node.cjs": "./cjs/parse/parsers/binary/index-browser.cjs",
    "./cjs/resolve/resolvers/file/index-node.cjs": "./cjs/resolve/resolvers/file/index-browser.cjs",
    "./es/parse/parsers/binary/index-node.mjs": "./es/parse/parsers/binary/index-browser.mjs",
    "./es/resolve/resolvers/file/index-node.mjs": "./es/resolve/resolvers/file/index-browser.mjs"
  },
  "main": "./cjs/configuration/saturated.cjs",
  "types": "./types/dist.d.ts",
  "exports": {
    ".": {
      "import": "./es/configuration/saturated.mjs",
      "require": "./cjs/configuration/saturated.cjs",
      "types": "./types/dist.d.ts"
    },
    "./configuration/saturated": {
      "import": "./es/configuration/saturated.mjs",
      "require": "./cjs/configuration/saturated.cjs",
      "types": "./types/dist.d.ts"
    },
    "./configuration/empty": {
      "import": "./es/configuration/empty.mjs",
      "require": "./cjs/configuration/empty.cjs",
      "types": "./types/dist.d.ts"
    },
    "./resolve/resolvers/file": {
      "browser": {
        "import": "./es/resolve/resolvers/file/index-browser.mjs",
        "require": "./cjs/resolve/resolvers/file/index-browser.cjs",
        "types": "./types/resolve/resolvers/file/index-browser.d.ts"
      },
      "default": {
        "import": "./es/resolve/resolvers/file/index-node.mjs",
        "require": "./cjs/resolve/resolvers/file/index-node.cjs",
        "types": "./types/resolve/resolvers/file/index-node.d.ts"
      }
    },
    "./resolve/resolvers/http-axios": {
      "import": "./es/resolve/resolvers/http-axios/index.mjs",
      "require": "./cjs/resolve/resolvers/http-axios/index.cjs",
      "types": "./types/resolve/resolvers/http-axios/index.d.ts"
    },
    "./resolve/strategies/apidom": {
      "import": "./es/resolve/strategies/apidom/index.mjs",
      "require": "./cjs/resolve/strategies/apidom/index.cjs",
      "types": "./types/resolve/strategies/apidom/index.d.ts"
    },
    "./resolve/strategies/asyncapi-2": {
      "import": "./es/resolve/strategies/asyncapi-2/index.mjs",
      "require": "./cjs/resolve/strategies/asyncapi-2/index.cjs",
      "types": "./types/resolve/strategies/asyncapi-2/index.d.ts"
    },
    "./resolve/strategies/openapi-2": {
      "import": "./es/resolve/strategies/openapi-2/index.mjs",
      "require": "./cjs/resolve/strategies/openapi-2/index.cjs",
      "types": "./types/resolve/strategies/openapi-2/index.d.ts"
    },
    "./resolve/strategies/openapi-3-0": {
      "import": "./es/resolve/strategies/openapi-3-0/index.mjs",
      "require": "./cjs/resolve/strategies/openapi-3-0/index.cjs",
      "types": "./types/resolve/strategies/openapi-3-0/index.d.ts"
    },
    "./resolve/strategies/openapi-3-1": {
      "import": "./es/resolve/strategies/openapi-3-1/index.mjs",
      "require": "./cjs/resolve/strategies/openapi-3-1/index.cjs",
      "types": "./types/resolve/strategies/openapi-3-1/index.d.ts"
    },
    "./parse/parsers/api-design-systems-json": {
      "import": "./es/parse/parsers/api-design-systems-json/index.mjs",
      "require": "./cjs/parse/parsers/api-design-systems-json/index.cjs",
      "types": "./types/parse/parsers/api-design-systems-json/index.d.ts"
    },
    "./parse/parsers/api-design-systems-yaml": {
      "import": "./es/parse/parsers/api-design-systems-yaml/index.mjs",
      "require": "./cjs/parse/parsers/api-design-systems-yaml/index.cjs",
      "types": "./types/parse/parsers/api-design-systems-yaml/index.d.ts"
    },
    "./parse/parsers/asyncapi-json-2": {
      "import": "./es/parse/parsers/asyncapi-json-2/index.mjs",
      "require": "./cjs/parse/parsers/asyncapi-json-2/index.cjs",
      "types": "./types/parse/parsers/asyncapi-json-2/index.d.ts"
    },
    "./parse/parsers/asyncapi-yaml-2": {
      "import": "./es/parse/parsers/asyncapi-yaml-2/index.mjs",
      "require": "./cjs/parse/parsers/asyncapi-yaml-2/index.cjs",
      "types": "./types/parse/parsers/asyncapi-yaml-2/index.d.ts"
    },
    "./parse/parsers/workflows-json-1": {
      "import": "./es/parse/parsers/workflows-json-1/index.mjs",
      "require": "./cjs/parse/parsers/workflows-json-1/index.cjs",
      "types": "./types/parse/parsers/workflows-json-1/index.d.ts"
    },
    "./parse/parsers/workflows-yaml-1": {
      "import": "./es/parse/parsers/workflows-yaml-1/index.mjs",
      "require": "./cjs/parse/parsers/workflows-yaml-1/index.cjs",
      "types": "./types/parse/parsers/workflows-yaml-1/index.d.ts"
    },
    "./parse/parsers/apidom-json": {
      "import": "./es/parse/parsers/apidom-json/index.mjs",
      "require": "./cjs/parse/parsers/apidom-json/index.cjs",
      "types": "./types/parse/parsers/apidom-json/index.d.ts"
    },
    "./parse/parsers/binary": {
      "browser": {
        "import": "./es/parse/parsers/binary/index-browser.mjs",
        "require": "./cjs/parse/parsers/binary/index-browser.cjs",
        "types": "./types/parse/parsers/binary/index-browser.d.ts"
      },
      "default": {
        "import": "./es/parse/parsers/binary/index-node.mjs",
        "require": "./cjs/parse/parsers/binary/index-node.cjs",
        "types": "./types/parse/parsers/binary/index-node.d.ts"
      }
    },
    "./parse/parsers/json": {
      "import": "./es/parse/parsers/json/index.mjs",
      "require": "./cjs/parse/parsers/json/index.cjs",
      "types": "./types/parse/parsers/json/index.d.ts"
    },
    "./parse/parsers/openapi-json-2": {
      "import": "./es/parse/parsers/openapi-json-2/index.mjs",
      "require": "./cjs/parse/parsers/openapi-json-2/index.cjs",
      "types": "./types/parse/parsers/openapi-json-2/index.d.ts"
    },
    "./parse/parsers/openapi-yaml-2": {
      "import": "./es/parse/parsers/openapi-yaml-2/index.mjs",
      "require": "./cjs/parse/parsers/openapi-yaml-2/index.cjs",
      "types": "./types/parse/parsers/openapi-yaml-2/index.d.ts"
    },
    "./parse/parsers/openapi-json-3-0": {
      "import": "./es/parse/parsers/openapi-json-3-0/index.mjs",
      "require": "./cjs/parse/parsers/openapi-json-3-0/index.cjs",
      "types": "./types/parse/parsers/openapi-json-3-0/index.d.ts"
    },
    "./parse/parsers/openapi-json-3-1": {
      "import": "./es/parse/parsers/openapi-json-3-1/index.mjs",
      "require": "./cjs/parse/parsers/openapi-json-3-1/index.cjs",
      "types": "./types/parse/parsers/openapi-json-3-1/index.d.ts"
    },
    "./parse/parsers/openapi-yaml-3-0": {
      "import": "./es/parse/parsers/openapi-yaml-3-0/index.mjs",
      "require": "./cjs/parse/parsers/openapi-yaml-3-0/index.cjs",
      "types": "./types/parse/parsers/openapi-yaml-3-0/index.d.ts"
    },
    "./parse/parsers/openapi-yaml-3-1": {
      "import": "./es/parse/parsers/openapi-yaml-3-1/index.mjs",
      "require": "./cjs/parse/parsers/openapi-yaml-3-1/index.cjs",
      "types": "./types/parse/parsers/openapi-yaml-3-1/index.d.ts"
    },
    "./parse/parsers/yaml-1-2": {
      "import": "./es/parse/parsers/yaml-1-2/index.mjs",
      "require": "./cjs/parse/parsers/yaml-1-2/index.cjs",
      "types": "./types/parse/parsers/yaml-1-2/index.d.ts"
    },
    "./dereference/strategies/apidom": {
      "import": "./es/dereference/strategies/apidom/index.mjs",
      "require": "./cjs/dereference/strategies/apidom/index.cjs",
      "types": "./types/dereference/strategies/apidom/index.d.ts"
    },
    "./dereference/strategies/apidom/selectors/element-id": {
      "import": "./es/dereference/strategies/apidom/selectors/element-id.mjs",
      "require": "./cjs/dereference/strategies/apidom/selectors/element-id.cjs",
      "types": "./types/dereference/strategies/apidom/selectors/element-id.d.ts"
    },
    "./dereference/strategies/asyncapi-2": {
      "import": "./es/dereference/strategies/asyncapi-2/index.mjs",
      "require": "./cjs/dereference/strategies/asyncapi-2/index.cjs",
      "types": "./types/dereference/strategies/asyncapi-2/index.d.ts"
    },
    "./dereference/strategies/openapi-2": {
      "import": "./es/dereference/strategies/openapi-2/index.mjs",
      "require": "./cjs/dereference/strategies/openapi-2/index.cjs",
      "types": "./types/dereference/strategies/openapi-2/index.d.ts"
    },
    "./dereference/strategies/openapi-3-0": {
      "import": "./es/dereference/strategies/openapi-3-0/index.mjs",
      "require": "./cjs/dereference/strategies/openapi-3-0/index.cjs",
      "types": "./types/dereference/strategies/openapi-3-0/index.d.ts"
    },
    "./dereference/strategies/openapi-3-1": {
      "import": "./es/dereference/strategies/openapi-3-1/index.mjs",
      "require": "./cjs/dereference/strategies/openapi-3-1/index.cjs",
      "types": "./types/dereference/strategies/openapi-3-1/index.d.ts"
    },
    "./dereference/strategies/openapi-3-1/selectors/$anchor": {
      "import": "./es/dereference/strategies/openapi-3-1/selectors/$anchor.mjs",
      "require": "./cjs/dereference/strategies/openapi-3-1/selectors/$anchor.cjs",
      "types": "./types/dereference/strategies/openapi-3-1/selectors/$anchor.d.ts"
    },
    "./dereference/strategies/openapi-3-1/selectors/uri": {
      "import": "./es/dereference/strategies/openapi-3-1/selectors/uri.mjs",
      "require": "./cjs/dereference/strategies/openapi-3-1/selectors/uri.cjs",
      "types": "./types/dereference/strategies/openapi-3-1/selectors/uri.d.ts"
    },
    "./bundle/strategies/openapi-3-1": {
      "import": "./es/bundle/strategies/openapi-3-1/index.mjs",
      "require": "./cjs/bundle/strategies/openapi-3-1/index.cjs",
      "types": "./types/bundle/strategies/openapi-3-1/index.d.ts"
    }
  },
  "imports": {
    "#buffer": {
      "node": {
        "import": "./es/util/polyfills/buffer/protocol-import.mjs",
        "require": "./cjs/util/polyfills/buffer/standard-import.cjs"
      },
      "default": "./cjs/util/polyfills/buffer/standard-import.cjs"
    },
    "#fs": {
      "node": {
        "import": "./es/util/polyfills/fs/protocol-import.mjs",
        "require": "./cjs/util/polyfills/fs/standard-import.cjs"
      },
      "default": "./cjs/util/polyfills/fs/standard-import.cjs"
    },
    "#util": {
      "node": {
        "import": "./es/util/polyfills/util/protocol-import.mjs",
        "require": "./cjs/util/polyfills/util/standard-import.cjs"
      },
      "default": "./cjs/util/polyfills/util/standard-import.cjs"
    }
  },
  "scripts": {
    "build": "npm run clean && run-p --max-parallel ${CPU_CORES:-2} typescript:declaration build:es build:cjs build:umd:browser",
    "build:es": "cross-env BABEL_ENV=es babel src --out-dir es --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward'",
    "build:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.ts' --out-file-extension '.cjs' --root-mode 'upward'",
    "build:umd:browser": "cross-env BABEL_ENV=browser webpack --config config/webpack/browser.config.js --progress",
    "lint": "eslint ./",
    "lint:fix": "eslint ./ --fix",
    "clean": "rimraf ./es ./cjs ./dist ./types",
    "test": "cross-env NODE_ENV=test BABEL_ENV=cjs mocha",
    "perf": "cross-env NODE_ENV=test  BABEL_ENV=cjs node ./test/perf/index.cjs",
    "perf:openapi-3-1-dereference": "cross-env NODE_ENV=test BABEL_ENV=cjs node ./test/perf/openapi-3-1-dereference.cjs",
    "typescript:check-types": "tsc --noEmit",
    "typescript:declaration": "tsc -p declaration.tsconfig.json && rollup -c config/rollup/types.dist.js",
    "prepack": "copyfiles -u 3 ../../LICENSES/* LICENSES && copyfiles -u 2 ../../NOTICE .",
    "postpack": "rimraf NOTICE LICENSES"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/swagger-api/apidom.git"
  },
  "author": "Vladimir Gorej",
  "license": "Apache-2.0",
  "dependencies": {
    "@babel/runtime-corejs3": "^7.20.7",
    "@swagger-api/apidom-core": "^1.0.0-alpha.6",
    "@swagger-api/apidom-error": "^1.0.0-alpha.6",
    "@types/ramda": "~0.30.0",
    "axios": "^1.4.0",
    "minimatch": "^7.4.3",
    "process": "^0.11.10",
    "ramda": "~0.30.0",
    "ramda-adjunct": "^5.0.0"
  },
  "optionalDependencies": {
    "@swagger-api/apidom-error": "^1.0.0-alpha.1",
    "@swagger-api/apidom-json-pointer": "^1.0.0-alpha.1",
    "@swagger-api/apidom-ns-asyncapi-2": "^1.0.0-alpha.1",
    "@swagger-api/apidom-ns-openapi-2": "^1.0.0-alpha.1",
    "@swagger-api/apidom-ns-openapi-3-0": "^1.0.0-alpha.1",
    "@swagger-api/apidom-ns-openapi-3-1": "^1.0.0-alpha.1",
    "@swagger-api/apidom-ns-workflows-1": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-api-design-systems-json": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-api-design-systems-yaml": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-asyncapi-json-2": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-asyncapi-yaml-2": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-json": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-openapi-json-2": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-openapi-json-3-0": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-openapi-json-3-1": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-openapi-yaml-2": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-openapi-yaml-3-0": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-openapi-yaml-3-1": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-workflows-json-1": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-workflows-yaml-1": "^1.0.0-alpha.1",
    "@swagger-api/apidom-parser-adapter-yaml-1-2": "^1.0.0-alpha.1"
  },
  "devDependencies": {
    "@swagger-api/apidom-error": "*",
    "@swagger-api/apidom-json-pointer": "*",
    "@swagger-api/apidom-ns-asyncapi-2": "*",
    "@swagger-api/apidom-ns-openapi-2": "*",
    "@swagger-api/apidom-ns-openapi-3-0": "*",
    "@swagger-api/apidom-ns-openapi-3-1": "*",
    "@swagger-api/apidom-ns-workflows-1": "*",
    "@swagger-api/apidom-parser-adapter-api-design-systems-json": "*",
    "@swagger-api/apidom-parser-adapter-api-design-systems-yaml": "*",
    "@swagger-api/apidom-parser-adapter-asyncapi-json-2": "*",
    "@swagger-api/apidom-parser-adapter-asyncapi-yaml-2": "*",
    "@swagger-api/apidom-parser-adapter-json": "*",
    "@swagger-api/apidom-parser-adapter-openapi-json-2": "*",
    "@swagger-api/apidom-parser-adapter-openapi-json-3-0": "*",
    "@swagger-api/apidom-parser-adapter-openapi-json-3-1": "*",
    "@swagger-api/apidom-parser-adapter-openapi-yaml-2": "*",
    "@swagger-api/apidom-parser-adapter-openapi-yaml-3-0": "*",
    "@swagger-api/apidom-parser-adapter-openapi-yaml-3-1": "*",
    "@swagger-api/apidom-parser-adapter-workflows-json-1": "*",
    "@swagger-api/apidom-parser-adapter-workflows-yaml-1": "*",
    "@swagger-api/apidom-parser-adapter-yaml-1-2": "*",
    "axios-mock-adapter": "^1.21.4"
  },
  "files": [
    "cjs/",
    "dist/",
    "es/",
    "types/",
    "LICENSES",
    "NOTICE",
    "README.md",
    "CHANGELOG.md"
  ],
  "gitHead": "81da2a87846baf87cf9152575fcdecceb82d1a03"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy