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

@atlassianlabs/jira-metaui-transformer

Package Overview
Dependencies
Maintainers
7
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlassianlabs/jira-metaui-transformer - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

23

esm/FieldTransformer.js

@@ -0,1 +1,2 @@

import _typeof from "@babel/runtime/helpers/esm/typeof";
import _extends from "@babel/runtime/helpers/esm/extends";

@@ -569,12 +570,16 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";

if (this.schemaName(field) === 'com.pyxis.greenhopper.jira:gh-sprint') {
var id = sprintIdRegex.exec(field.currentValue);
var name = sprintNameRegex.exec(field.currentValue);
if (_typeof(field.currentValue) === 'object') {
return field.currentValue;
} else {
var id = sprintIdRegex.exec(field.currentValue);
var name = sprintNameRegex.exec(field.currentValue);
if (id && name) {
return {
label: name[1],
value: id[1]
};
} else {
return undefined;
if (id && name) {
return {
label: name[1],
value: id[1]
};
} else {
return undefined;
}
}

@@ -581,0 +586,0 @@ }

@@ -10,2 +10,4 @@ "use strict";

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

@@ -587,12 +589,16 @@

if (this.schemaName(field) === 'com.pyxis.greenhopper.jira:gh-sprint') {
var id = sprintIdRegex.exec(field.currentValue);
var name = sprintNameRegex.exec(field.currentValue);
if ((0, _typeof2["default"])(field.currentValue) === 'object') {
return field.currentValue;
} else {
var id = sprintIdRegex.exec(field.currentValue);
var name = sprintNameRegex.exec(field.currentValue);
if (id && name) {
return {
label: name[1],
value: id[1]
};
} else {
return undefined;
if (id && name) {
return {
label: name[1],
value: id[1]
};
} else {
return undefined;
}
}

@@ -599,0 +605,0 @@ }

{
"name": "@atlassianlabs/jira-metaui-transformer",
"version": "1.0.3",
"version": "1.0.4",
"description": "Transform jira meta information to a ui descriptor",

@@ -16,8 +16,8 @@ "repository": {

"dependencies": {
"@atlassianlabs/jira-pi-common-models": "^1.0.3",
"@atlassianlabs/jira-pi-meta-models": "^1.0.3",
"@atlassianlabs/jira-pi-common-models": "^1.0.4",
"@atlassianlabs/jira-pi-meta-models": "^1.0.4",
"@babel/runtime": ">=7.10.0"
},
"gitHead": "fb7f14e9212eef5a1d0f23bba414fdbb43201cc1",
"gitHead": "5028c166f48dc8af61fde8da9077bc51d3b472ff",
"typings": "./index.d.ts"
}
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