0.0.9 • Published 2 years ago

@bestplace/just v0.0.9

Weekly downloads
11
License
ISC
Repository
-
Last release
2 years ago

Functions

parseLayerConfigShortcut(layer, extend) ⇒ Object

Parses layer config shortcut into an object. The shortcut can either be string or object. '^' and '+' in the beginning of the string shortcut set flags 'active' and 'toggle' respectively. The resulting object can optionally be extended with 'name' and 'apiVersion'. By default 'name' is set to the same value as under 'url' and 'apiVersion' is set to 4.

Kind: global function

ParamTypeDefaultDescription
layerString | Objectlayer config shortcut
extendBooleantruewhether to extend the result with 'name' and 'apiVersion'

addQueryParams(url, queryParams, excludeId) ⇒ String

Returns source url merged with query params, optionally excluding 'id' param.

Kind: global function

ParamTypeDefaultDescription
urlStringsource url
queryParamsObjectquery params object
excludeIdBooleanfalseexclude 'id' query param from total url

Classes

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

5 years ago

0.0.2

5 years ago