Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arcgis-item-engine

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arcgis-item-engine - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.0.5](https://github.com/EsriPS/arcgis-item-engine/compare/v0.0.4...v0.0.5) (2021-03-26)
### Bug Fixes
* **item workflow:** support cross-Portal copy without specified owner ([#22](https://github.com/EsriPS/arcgis-item-engine/issues/22)) ([6d79218](https://github.com/EsriPS/arcgis-item-engine/commit/6d7921884f32ab00adbd1e35683ba20cd9c301c8))
### [0.0.4](https://github.com/EsriPS/arcgis-item-engine/compare/v0.0.3...v0.0.4) (2021-03-17)

@@ -7,0 +14,0 @@

9

dist/esm/workflow/item/base/copy.js

@@ -126,6 +126,6 @@ var __assign = (this && this.__assign) || function () {

var getDescription = function () { return getItemDescription(requestOptions)
.then(function (description) { return (__assign(__assign({}, description), options === null || options === void 0 ? void 0 : options.description)); }); };
.then(function (description) { return (__assign(__assign(__assign({}, description), options === null || options === void 0 ? void 0 : options.description), { owner: undefined })); }); };
// function to retrieve item data converted for add
var getData = function () { return getItemData(__assign(__assign({}, requestOptions), { rawResponse: true }))
.then(function (rawResponse) { return convertRawDataResponseToData(rawResponse); }); };
var getData = function (description) { return getItemData(__assign(__assign({}, requestOptions), { rawResponse: true }))
.then(function (rawResponse) { return convertRawDataResponseToData(rawResponse, description.name); }); };
// function to retrieve item resources converted for add

@@ -135,3 +135,4 @@ var getResources = function () { return getItemResources(requestOptions)

// build an object with selected option operations
var properties = __assign(__assign({ description: getDescription() }, ((options === null || options === void 0 ? void 0 : options.data) && { data: getData() })), ((options === null || options === void 0 ? void 0 : options.resources) && { resources: getResources() }));
var description = getDescription();
var properties = __assign(__assign({ description: description }, ((options === null || options === void 0 ? void 0 : options.data) && { data: description.then(getData) })), ((options === null || options === void 0 ? void 0 : options.resources) && { resources: getResources() }));
// split object to array of operations returning an object with single property

@@ -138,0 +139,0 @@ var operations = Object.entries(properties)

@@ -131,6 +131,6 @@ "use strict";

var getDescription = function () { return core_1.getItemDescription(requestOptions)
.then(function (description) { return (__assign(__assign({}, description), options === null || options === void 0 ? void 0 : options.description)); }); };
.then(function (description) { return (__assign(__assign(__assign({}, description), options === null || options === void 0 ? void 0 : options.description), { owner: undefined })); }); };
// function to retrieve item data converted for add
var getData = function () { return core_1.getItemData(__assign(__assign({}, requestOptions), { rawResponse: true }))
.then(function (rawResponse) { return convertRawDataResponseToData(rawResponse); }); };
var getData = function (description) { return core_1.getItemData(__assign(__assign({}, requestOptions), { rawResponse: true }))
.then(function (rawResponse) { return convertRawDataResponseToData(rawResponse, description.name); }); };
// function to retrieve item resources converted for add

@@ -140,3 +140,4 @@ var getResources = function () { return core_1.getItemResources(requestOptions)

// build an object with selected option operations
var properties = __assign(__assign({ description: getDescription() }, ((options === null || options === void 0 ? void 0 : options.data) && { data: getData() })), ((options === null || options === void 0 ? void 0 : options.resources) && { resources: getResources() }));
var description = getDescription();
var properties = __assign(__assign({ description: description }, ((options === null || options === void 0 ? void 0 : options.data) && { data: description.then(getData) })), ((options === null || options === void 0 ? void 0 : options.resources) && { resources: getResources() }));
// split object to array of operations returning an object with single property

@@ -143,0 +144,0 @@ var operations = Object.entries(properties)

{
"name": "arcgis-item-engine",
"version": "0.0.4",
"version": "0.0.5",
"description": "Engine for powering ArcGIS item workflows.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/EsriPS/arcgis-item-engine#readme",

@@ -104,7 +104,7 @@ import { IItem } from '@esri/arcgis-rest-portal';

const getDescription = () => getItemDescription(requestOptions)
.then((description) => ({ ...description, ...options?.description }) as IItem);
.then((description) => ({ ...description, ...options?.description, owner: undefined }));
// function to retrieve item data converted for add
const getData = () => getItemData({ ...requestOptions, rawResponse: true })
.then((rawResponse) => convertRawDataResponseToData(rawResponse));
const getData = (description: IItem) => getItemData({ ...requestOptions, rawResponse: true })
.then((rawResponse) => convertRawDataResponseToData(rawResponse, description.name));

@@ -116,5 +116,6 @@ // function to retrieve item resources converted for add

// build an object with selected option operations
const description = getDescription();
const properties = {
description: getDescription(),
...(options?.data && { data: getData() }),
description,
...(options?.data && { data: description.then(getData) }),
...(options?.resources && { resources: getResources() }),

@@ -121,0 +122,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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