@esri/arcgis-rest-service-admin
Advanced tools
Comparing version 2.0.2 to 2.0.3
/* @preserve | ||
* @esri/arcgis-rest-service-admin - v2.0.2 - Apache-2.0 | ||
* @esri/arcgis-rest-service-admin - v2.0.3 - Apache-2.0 | ||
* Copyright (c) 2017-2019 Esri, Inc. | ||
* Mon May 20 2019 09:27:16 GMT-0700 (Pacific Daylight Time) | ||
* Thu May 23 2019 12:21:00 GMT-0700 (Pacific Daylight Time) | ||
*/ | ||
@@ -6,0 +6,0 @@ (function (global, factory) { |
/* @preserve | ||
* @esri/arcgis-rest-service-admin - v2.0.2 - Apache-2.0 | ||
* @esri/arcgis-rest-service-admin - v2.0.3 - Apache-2.0 | ||
* Copyright (c) 2017-2019 Esri, Inc. | ||
* Mon May 20 2019 09:27:18 GMT-0700 (Pacific Daylight Time) | ||
* Thu May 23 2019 12:21:02 GMT-0700 (Pacific Daylight Time) | ||
*/ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@esri/arcgis-rest-request"),require("@esri/arcgis-rest-portal")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request","@esri/arcgis-rest-portal"],r):r(e.arcgisRest=e.arcgisRest||{},e.arcgisRest,e.arcgisRest)}(this,function(e,r,t){"use strict";var s=function(){return(s=Object.assign||function(e){for(var r,t=1,s=arguments.length;t<s;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)};e.createFeatureService=function(e){var i=t.determineOwner(e),n=t.getPortalUrl(e)+"/content/users/"+i+"/createService",a=s({},e,{rawResponse:!1});return a.params=s({createParameters:a.item,outputType:"featureService"},a.params),a.folderId&&"/"!==a.folderId?r.request(n,a).then(function(e){if(e.success)return t.moveItem({itemId:e.itemId,folderId:a.folderId,authentication:a.authentication}).then(function(r){if(r.success)return e;throw Error("A problem was encountered when trying to move the service to a different folder.")});throw Error("A problem was encountered when trying to create the service.")}):r.request(n,a)},e.addToServiceDefinition=function(e,t){var i=r.cleanUrl(e).replace("/rest/services","/rest/admin/services")+"/addToDefinition";return t.params=s({addToDefinition:{}},t.params),t.layers&&t.layers.length>0&&(t.params.addToDefinition.layers=t.layers),t.tables&&t.tables.length>0&&(t.params.addToDefinition.tables=t.tables),r.request(i,t)},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=service-admin.umd.min.js.map |
{ | ||
"name": "@esri/arcgis-rest-service-admin", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Service administration helpers for @esri/arcgis-rest-js", | ||
@@ -16,9 +16,9 @@ "main": "dist/node/index.js", | ||
"dependencies": { | ||
"@esri/arcgis-rest-types": "^2.0.2", | ||
"@esri/arcgis-rest-types": "^2.0.3", | ||
"tslib": "^1.9.3" | ||
}, | ||
"devDependencies": { | ||
"@esri/arcgis-rest-auth": "^2.0.2", | ||
"@esri/arcgis-rest-portal": "^2.0.2", | ||
"@esri/arcgis-rest-request": "^2.0.2" | ||
"@esri/arcgis-rest-auth": "^2.0.3", | ||
"@esri/arcgis-rest-portal": "^2.0.3", | ||
"@esri/arcgis-rest-request": "^2.0.3" | ||
}, | ||
@@ -25,0 +25,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0