New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

atlassian-openapi

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atlassian-openapi - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

lib/test-functions.d.ts

20

lib/index.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./lookup"));
__export(require("./type-checks"));
__export(require("./operation-grouping"));
__exportStar(require("./swagger"), exports);
__exportStar(require("./lookup"), exports);
__exportStar(require("./type-checks"), exports);
__exportStar(require("./operation-grouping"), exports);
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SwaggerLookup = void 0;
const type_checks_1 = require("./type-checks");

@@ -4,0 +5,0 @@ const jsonpointer_1 = require("jsonpointer");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tagGroupingStrategy = exports.urlGroupingStrategy = exports.radV1GroupingStrategy = exports.getOpPath = exports.getIdForOperation = exports.getIdForOperationGroup = void 0;
const URI = require("urijs");

@@ -4,0 +5,0 @@ function findBestServer(swagger) {

@@ -205,2 +205,22 @@ export declare namespace Swagger {

/**
* New OAuth2 scopes
* @see https://hello.atlassian.net/wiki/spaces/redfox/pages/1046875420/RFC+OAuth+scopes+deprecation+in+Jira+-+DAC
*/
interface OAuth2Scopes {
deprecated: boolean;
scopes: string[];
documentation?: string;
}
/**
* OAuth2 scopes with scope's state
* @see https://hello.atlassian.net/wiki/spaces/redfox/pages/1304762888/OpenAPI+-+DAC+contract
*/
interface OAuth2ScopesWithState {
state: OAuth2ScopesState;
scopes: string[];
scheme?: string;
documentation?: string;
}
type OAuth2ScopesState = 'Current' | 'Deprecated' | 'Beta';
/**
* This interface was referenced by `SwaggerV3`'s JSON-Schema

@@ -232,2 +252,3 @@ * via the `definition` "Operation".

'x-atlassian-connect-scope'?: string;
'x-atlassian-oauth2-scopes'?: OAuth2Scopes[] | OAuth2ScopesWithState[];
}

@@ -234,0 +255,0 @@ /**

@@ -29,2 +29,6 @@ import { Swagger as S, Swagger } from './swagger';

function isPathParam(p: Swagger.Parameter): p is (Swagger.ParameterWithSchemaWithExampleInPath | Swagger.ParameterWithSchemaWithExamplesInPath | Swagger.ParameterWithContentInPath);
function isOAuth2ScopesArray(o: NonNullable<Swagger.Operation['x-atlassian-oauth2-scopes']>): o is Array<Swagger.OAuth2Scopes>;
function isOAuth2ScopesWithStateArray(o: NonNullable<Swagger.Operation['x-atlassian-oauth2-scopes']>): o is Array<Swagger.OAuth2ScopesWithState>;
function isOAuth2Scopes(o: Swagger.OAuth2Scopes | Swagger.OAuth2ScopesWithState): o is Swagger.OAuth2Scopes;
function isOAuth2ScopesWithState(o: Swagger.OAuth2Scopes | Swagger.OAuth2ScopesWithState): o is Swagger.OAuth2ScopesWithState;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SwaggerTypeChecks = void 0;
var SwaggerTypeChecks;

@@ -360,2 +361,21 @@ (function (SwaggerTypeChecks) {

SwaggerTypeChecks.isPathParam = isPathParam;
// tslint:disable-next-line:max-line-length
function isOAuth2ScopesArray(o) {
return o.every(isOAuth2Scopes);
}
SwaggerTypeChecks.isOAuth2ScopesArray = isOAuth2ScopesArray;
// tslint:disable-next-line:max-line-length
function isOAuth2ScopesWithStateArray(o) {
return o.every(isOAuth2ScopesWithState);
}
SwaggerTypeChecks.isOAuth2ScopesWithStateArray = isOAuth2ScopesWithStateArray;
function isOAuth2Scopes(o) {
return 'deprecated' in o;
}
SwaggerTypeChecks.isOAuth2Scopes = isOAuth2Scopes;
// tslint:disable-next-line:max-line-length
function isOAuth2ScopesWithState(o) {
return 'state' in o;
}
SwaggerTypeChecks.isOAuth2ScopesWithState = isOAuth2ScopesWithState;
})(SwaggerTypeChecks = exports.SwaggerTypeChecks || (exports.SwaggerTypeChecks = {}));
{
"name": "atlassian-openapi",
"version": "1.0.0",
"version": "1.0.2",
"description": "This is a package that lets you deal with the Atlassian flavour of the OpenAPI 3.0 specification.",
"repository": {
"type" : "git",
"url" : "git@bitbucket.org:echo_rm/atlassian-openapi.git"
},
"repository": "github:robertmassaioli/atlassian-openapi",
"keywords": [

@@ -30,3 +27,3 @@ "atlassian",

"dependencies": {
"jsonpointer": "^4.0.1",
"jsonpointer": "^5.0.0",
"urijs": "^1.18.10"

@@ -42,3 +39,3 @@ },

"tslint": "^5.10.0",
"typescript": "^3.1.1"
"typescript": "^3.7"
},

@@ -45,0 +42,0 @@ "husky": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc