UNPKG

ngn-data

Version:

Data modeling, stores, proxies, and utilities for NGN

31 lines (22 loc) 662 B
/** * v0.1.11 generated on: Sat Jun 24 2017 01:20:07 GMT+0000 (UTC) * Copyright (c) 2014-2017, Ecor Ventures LLC. All Rights Reserved. See LICENSE (BSD3). */ 'use strict' class NgnHttpProxy extends NGN.DATA.Proxy { constructor (config) { config = config || {} super(config) Object.defineProperties(this, { url: NGN.public(config.url || 'http://localhost'), username: NGN.public(config.username || null), password: NGN.public(config.password || null), token: NGN.public(config.token || null) }) } init (store) { super.init(store) NGN.inherit(this, store) } } NGN.DATA.HttpProxy = NgnHttpProxy