@esri/arcgis-rest-feature-service
Advanced tools
Comparing version 1.7.1 to 1.8.0
/* @preserve | ||
* @esri/arcgis-rest-feature-service - v1.7.1 - Apache-2.0 | ||
* @esri/arcgis-rest-feature-service - v1.8.0 - Apache-2.0 | ||
* Copyright (c) 2017-2018 Esri, Inc. | ||
* Fri Aug 10 2018 14:26:41 GMT-0700 (PDT) | ||
* Fri Aug 17 2018 09:47:35 GMT-0700 (PDT) | ||
*/ | ||
@@ -6,0 +6,0 @@ (function (global, factory) { |
/* @preserve | ||
* @esri/arcgis-rest-feature-service - v1.7.1 - Apache-2.0 | ||
* @esri/arcgis-rest-feature-service - v1.8.0 - Apache-2.0 | ||
* Copyright (c) 2017-2018 Esri, Inc. | ||
* Fri Aug 10 2018 14:26:43 GMT-0700 (PDT) | ||
* Fri Aug 17 2018 09:47:41 GMT-0700 (PDT) | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@esri/arcgis-rest-request")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request"],t):t(e.arcgisRest=e.arcgisRest||{},e.arcgisRest)}(this,function(e,t){"use strict";var r=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e};function a(e,t){Object.keys(e).forEach(function(r){"url"!==r&&"params"!==r&&"authentication"!==r&&"httpMethod"!==r&&"fetch"!==r&&"portal"!==r&&"maxUrlLength"!==r&&(t.params[r]=e[r])})}e.getFeature=function(e){var a=e.url+"/"+e.id,s=r({httpMethod:"GET"},e);return t.request(a,s).then(function(e){return e.feature})},e.queryFeatures=function(e){var s=r({params:{},httpMethod:"GET",url:e.url},e);return a(e,s),s.params.where||(s.params.where="1=1"),s.params.outFields||(s.params.outFields="*"),t.request(s.url+"/query",s)},e.addFeatures=function(e){var s=e.url+"/addFeatures",u=r({params:{}},e);return a(e,u),u.params.features=e.adds,delete u.params.adds,t.request(s,u)},e.updateFeatures=function(e){var s=e.url+"/updateFeatures",u=r({params:{}},e);return a(e,u),u.params.features=e.updates,delete u.params.updates,t.request(s,u)},e.deleteFeatures=function(e){var s=e.url+"/deleteFeatures",u=r({params:{}},e);return a(e,u),u.params.objectIds=e.deletes,delete u.params.deletes,t.request(s,u)},e.getAttachments=function(e){return t.request(e.url+"/"+e.featureId+"/attachments",e)},e.addAttachment=function(e){var a=r({params:{}},e);return a.params.attachment=e.attachment,t.request(a.url+"/"+a.featureId+"/addAttachment",a)},e.updateAttachment=function(e){var a=r({params:{}},e);return a.params.attachment=e.attachment,a.params.attachmentId=e.attachmentId,t.request(a.url+"/"+a.featureId+"/updateAttachment",a)},e.deleteAttachments=function(e){var a=r({params:{}},e);return a.params.attachmentIds=e.attachmentIds,t.request(a.url+"/"+a.featureId+"/deleteAttachments",a)},e.queryRelated=function(e){var s=r({params:{},httpMethod:"GET",url:e.url},e);return a(e,s),s.params.definitionExpression||(s.params.definitionExpression="1=1"),s.params.outFields||(s.params.outFields="*"),s.params.relationshipId||(s.params.relationshipId=0),t.request(s.url+"/queryRelatedRecords",s)},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=feature-service.umd.min.js.map |
{ | ||
"name": "@esri/arcgis-rest-feature-service", | ||
"version": "1.7.1", | ||
"version": "1.8.0", | ||
"description": "Feature service helpers for @esri/arcgis-rest-request", | ||
@@ -22,4 +22,4 @@ "main": "dist/node/index.js", | ||
"devDependencies": { | ||
"@esri/arcgis-rest-common-types": "^1.7.1", | ||
"@esri/arcgis-rest-request": "^1.7.1" | ||
"@esri/arcgis-rest-common-types": "^1.8.0", | ||
"@esri/arcgis-rest-request": "^1.8.0" | ||
}, | ||
@@ -26,0 +26,0 @@ "scripts": { |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
143643
62
1636
1