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

@loaders.gl/wms

Package Overview
Dependencies
Maintainers
9
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/wms - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

2

dist/es5/csw-capabilities-loader.js

@@ -11,3 +11,3 @@ "use strict";

var _parseCswCapabilities = require("./lib/parsers/csw/parse-csw-capabilities");
var VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
var VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
var CSWCapabilitiesLoader = {

@@ -14,0 +14,0 @@ id: 'csw-capabilities',

@@ -11,3 +11,3 @@ "use strict";

var _parseCswDomain = require("./lib/parsers/csw/parse-csw-domain");
var VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
var VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
var CSWDomainLoader = {

@@ -14,0 +14,0 @@ id: 'csw-domain',

@@ -11,3 +11,3 @@ "use strict";

var _parseCswRecords = require("./lib/parsers/csw/parse-csw-records");
var VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
var VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
var CSWRecordsLoader = {

@@ -14,0 +14,0 @@ id: 'csw-records',

@@ -11,3 +11,3 @@ "use strict";

var _parseGml = require("./lib/parsers/gml/parse-gml");
var VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
var VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
var GMLLoader = {

@@ -14,0 +14,0 @@ name: 'GML',

@@ -14,3 +14,3 @@ "use strict";

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
var VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
var LERCLoader = {

@@ -17,0 +17,0 @@ id: 'lerc',

@@ -58,3 +58,5 @@ "use strict";

info_format: 'text/plain',
transparent: undefined
transparent: undefined,
time: undefined,
elevation: undefined
}, props.wmsParameters);

@@ -338,2 +340,4 @@ _this.vendorParameters = props.vendorParameters || {};

transparent: this.wmsParameters.transparent,
time: this.wmsParameters.time,
elevation: this.wmsParameters.elevation,
layers: this.wmsParameters.layers,

@@ -414,2 +418,3 @@ styles: this.wmsParameters.styles,

}, wmsParameters), this.vendorParameters), vendorParameters);
var IGNORE_EMPTY_KEYS = ['transparent', 'time', 'elevation'];
for (var _i = 0, _Object$entries = Object.entries(allParameters); _i < _Object$entries.length; _i++) {

@@ -419,3 +424,3 @@ var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i], 2),

value = _Object$entries$_i[1];
if (_key2 !== 'transparent' || value) {
if (!IGNORE_EMPTY_KEYS.includes(_key2) || value) {
url += first ? '?' : '&';

@@ -422,0 +427,0 @@ first = false;

@@ -11,3 +11,3 @@ "use strict";

var _parseWcsCapabilities = require("./lib/wcs/parse-wcs-capabilities");
var VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
var VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
var WCSCapabilitiesLoader = {

@@ -14,0 +14,0 @@ id: 'wcs-capabilities',

@@ -11,3 +11,3 @@ "use strict";

var _parseWfsCapabilities = require("./lib/wfs/parse-wfs-capabilities");
var VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
var VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
var WFSCapabilitiesLoader = {

@@ -14,0 +14,0 @@ id: 'wfs-capabilities',

@@ -11,3 +11,3 @@ "use strict";

var _parseWmtsCapabilities = require("./lib/wmts/parse-wmts-capabilities");
var VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
var VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
var WMTSCapabilitiesLoader = {

@@ -14,0 +14,0 @@ id: 'wmts-capabilities',

@@ -11,3 +11,3 @@ "use strict";

var _parseWmsCapabilities = require("./lib/parsers/wms/parse-wms-capabilities");
var VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
var VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
var WMSCapabilitiesLoader = {

@@ -14,0 +14,0 @@ id: 'wms-capabilities',

@@ -14,3 +14,3 @@ "use strict";

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
var VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
var WMSErrorLoader = {

@@ -17,0 +17,0 @@ id: 'wms-error',

import { parseCSWCapabilities } from './lib/parsers/csw/parse-csw-capabilities';
const VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
const VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
export const CSWCapabilitiesLoader = {

@@ -4,0 +4,0 @@ id: 'csw-capabilities',

import { parseCSWDomain } from './lib/parsers/csw/parse-csw-domain';
const VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
const VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
export const CSWDomainLoader = {

@@ -4,0 +4,0 @@ id: 'csw-domain',

import { parseCSWRecords } from './lib/parsers/csw/parse-csw-records';
const VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
const VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
export const CSWRecordsLoader = {

@@ -4,0 +4,0 @@ id: 'csw-records',

import { parseGML } from './lib/parsers/gml/parse-gml';
const VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
const VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
export const GMLLoader = {

@@ -4,0 +4,0 @@ name: 'GML',

import * as Lerc from 'lerc';
const VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
const VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
export const LERCLoader = {

@@ -4,0 +4,0 @@ id: 'lerc',

@@ -32,2 +32,4 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

transparent: undefined,
time: undefined,
elevation: undefined,
...props.wmsParameters

@@ -112,2 +114,4 @@ };

transparent: this.wmsParameters.transparent,
time: this.wmsParameters.time,
elevation: this.wmsParameters.elevation,
layers: this.wmsParameters.layers,

@@ -170,4 +174,5 @@ styles: this.wmsParameters.styles,

};
const IGNORE_EMPTY_KEYS = ['transparent', 'time', 'elevation'];
for (const [key, value] of Object.entries(allParameters)) {
if (key !== 'transparent' || value) {
if (!IGNORE_EMPTY_KEYS.includes(key) || value) {
url += first ? '?' : '&';

@@ -174,0 +179,0 @@ first = false;

import { parseWCSCapabilities } from './lib/wcs/parse-wcs-capabilities';
const VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
const VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
export const WCSCapabilitiesLoader = {

@@ -4,0 +4,0 @@ id: 'wcs-capabilities',

import { parseWFSCapabilities } from './lib/wfs/parse-wfs-capabilities';
const VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
const VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
export const WFSCapabilitiesLoader = {

@@ -4,0 +4,0 @@ id: 'wfs-capabilities',

import { parseWMTSCapabilities } from './lib/wmts/parse-wmts-capabilities';
const VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
const VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
export const WMTSCapabilitiesLoader = {

@@ -4,0 +4,0 @@ id: 'wmts-capabilities',

import { parseWMSCapabilities } from './lib/parsers/wms/parse-wms-capabilities';
const VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
const VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
export const WMSCapabilitiesLoader = {

@@ -4,0 +4,0 @@ id: 'wms-capabilities',

import { parseWMSError } from './lib/parsers/wms/parse-wms-error';
const VERSION = typeof "3.4.0" !== 'undefined' ? "3.4.0" : 'latest';
const VERSION = typeof "3.4.1" !== 'undefined' ? "3.4.1" : 'latest';
export const WMSErrorLoader = {

@@ -4,0 +4,0 @@ id: 'wms-error',

@@ -10,3 +10,3 @@ import type { DataSourceProps } from '../../sources/data-source';

/** In case the endpoint supports multiple CSW versions */
version?: '1.1.1' | '2.0.0' | '2.0.1' | '3.0.0' | '3.0.0';
version?: '1.1.1' | '2.0.0' | '2.0.1' | '3.0.0';
};

@@ -27,4 +27,7 @@ export type CSWGetCapabilitiesParameters = CSWCommonParameters & {

};
/** Describes a service or resource exposed by the catalog */
export type Service = {
/** name of service or resource */
name: string;
/** type of service or resource */
type: string;

@@ -39,6 +42,5 @@ url: string;

/**
* The CSWService class provides
* The CSWService class
* - provides type safe methods to form URLs to a CSW service
* - provides type safe methods to query and parse results (and errors) from a CSW service
* - implements the ImageService interface
* @note Only the URL parameter conversion is supported. XML posts are not supported.

@@ -45,0 +47,0 @@ */

@@ -11,6 +11,5 @@ "use strict";

/**
* The CSWService class provides
* The CSWService class
* - provides type safe methods to form URLs to a CSW service
* - provides type safe methods to query and parse results (and errors) from a CSW service
* - implements the ImageService interface
* @note Only the URL parameter conversion is supported. XML posts are not supported.

@@ -17,0 +16,0 @@ */

@@ -30,2 +30,6 @@ import type { ImageType } from '@loaders.gl/images';

transparent?: boolean;
/** If layer supports time dimension */
time?: string;
/** If layer supports elevation dimension */
elevation?: string;
};

@@ -47,2 +51,4 @@ /** Parameters for GetCapabilities */

height: number;
/** requested format for the return image. can be provided in service constructor */
format?: 'image/png';
/** Layers to render - can be provided in service constructor */

@@ -56,4 +62,6 @@ layers?: string | string[];

transparent?: boolean;
/** requested format for the return image. can be provided in service constructor */
format?: 'image/png';
/** If layer supports time dimension */
time?: string;
/** If layer supports elevation dimension */
elevation?: string;
};

@@ -60,0 +68,0 @@ /** GetMap parameters that are specific to the current view */

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

transparent: undefined,
time: undefined,
elevation: undefined,
...props.wmsParameters

@@ -141,2 +143,4 @@ };

transparent: this.wmsParameters.transparent,
time: this.wmsParameters.time,
elevation: this.wmsParameters.elevation,
layers: this.wmsParameters.layers,

@@ -217,5 +221,6 @@ styles: this.wmsParameters.styles,

// Encode the keys
const IGNORE_EMPTY_KEYS = ['transparent', 'time', 'elevation'];
for (const [key, value] of Object.entries(allParameters)) {
// hack to preserve test cases. Not super clear if keys should be included when values are undefined
if (key !== 'transparent' || value) {
if (!IGNORE_EMPTY_KEYS.includes(key) || value) {
url += first ? '?' : '&';

@@ -222,0 +227,0 @@ first = false;

{
"name": "@loaders.gl/wms",
"version": "3.4.0",
"version": "3.4.1",
"description": "Framework-independent loaders for the WMS (Web Map Service) standard",

@@ -42,6 +42,6 @@ "license": "MIT",

"@babel/runtime": "^7.3.1",
"@loaders.gl/images": "3.4.0",
"@loaders.gl/loader-utils": "3.4.0",
"@loaders.gl/schema": "3.4.0",
"@loaders.gl/xml": "3.4.0",
"@loaders.gl/images": "3.4.1",
"@loaders.gl/loader-utils": "3.4.1",
"@loaders.gl/schema": "3.4.1",
"@loaders.gl/xml": "3.4.1",
"@turf/rewind": "^5.1.5",

@@ -54,3 +54,3 @@ "deep-strict-equal": "^0.2.0",

},
"gitHead": "63854c9c521112108239e9c23fd6accbe6d6e380"
"gitHead": "2c39d1032c1a8b3678a6f09507b89ffe92ca9e1b"
}

@@ -23,3 +23,3 @@ // loaders.gl, MIT license

/** In case the endpoint supports multiple CSW versions */
version?: '1.1.1' | '2.0.0' | '2.0.1' | '3.0.0' | '3.0.0';
version?: '1.1.1' | '2.0.0' | '2.0.1' | '3.0.0';
};

@@ -45,3 +45,12 @@

export type Service = {name: string; type: string; url: string; params?: string; scheme?: string};
/** Describes a service or resource exposed by the catalog */
export type Service = {
/** name of service or resource */
name: string;
/** type of service or resource */
type: string;
url: string;
params?: string;
scheme?: string;
};

@@ -53,6 +62,5 @@ export type CSWServiceProps = DataSourceProps & {

/**
* The CSWService class provides
* The CSWService class
* - provides type safe methods to form URLs to a CSW service
* - provides type safe methods to query and parse results (and errors) from a CSW service
* - implements the ImageService interface
* @note Only the URL parameter conversion is supported. XML posts are not supported.

@@ -59,0 +67,0 @@ */

@@ -45,2 +45,6 @@ // loaders.gl, MIT license

transparent?: boolean;
/** If layer supports time dimension */
time?: string;
/** If layer supports elevation dimension */
elevation?: string;
};

@@ -64,2 +68,4 @@

height: number;
/** requested format for the return image. can be provided in service constructor */
format?: 'image/png';
/** Layers to render - can be provided in service constructor */

@@ -73,4 +79,6 @@ layers?: string | string[];

transparent?: boolean;
/** requested format for the return image. can be provided in service constructor */
format?: 'image/png';
/** If layer supports time dimension */
time?: string;
/** If layer supports elevation dimension */
elevation?: string;
};

@@ -219,2 +227,4 @@

transparent: undefined!,
time: undefined!,
elevation: undefined!,
...props.wmsParameters

@@ -349,2 +359,4 @@ };

transparent: this.wmsParameters.transparent,
time: this.wmsParameters.time,
elevation: this.wmsParameters.elevation,
layers: this.wmsParameters.layers,

@@ -448,5 +460,6 @@ styles: this.wmsParameters.styles,

// Encode the keys
const IGNORE_EMPTY_KEYS = ['transparent', 'time', 'elevation'];
for (const [key, value] of Object.entries(allParameters)) {
// hack to preserve test cases. Not super clear if keys should be included when values are undefined
if (key !== 'transparent' || value) {
if (!IGNORE_EMPTY_KEYS.includes(key) || value) {
url += first ? '?' : '&';

@@ -453,0 +466,0 @@ first = false;

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

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 not supported yet

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 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