Skip to content

Commit

Permalink
lib: added path setting for custom pathing
Browse files Browse the repository at this point in the history
  • Loading branch information
tflanagan committed Apr 24, 2016
1 parent 50242e1 commit 0ffd6dd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const test = () => {
gulp.task('browserify', browserify);

gulp.task('build', () => {
return eslint().then(es5).then(browserify);
return eslint().then(es5).then(sa).then(browserify);
});

gulp.task('build-sa', () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quickbase",
"version": "2.4.1",
"version": "2.5.0",
"description": "A lightweight, very flexible QuickBase API",
"keywords": [
"QuickBase",
Expand Down
4 changes: 2 additions & 2 deletions quickbase.browserify.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion quickbase.es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ var QuickBaseError = function (_Error) {
var defaults = {
realm: 'www',
domain: 'quickbase.com',
path: '/',
useSSL: true,

username: '',
Expand Down Expand Up @@ -514,7 +515,7 @@ var QueryBuilder = function () {
var options = {
hostname: [settings.realm, settings.domain].join('.'),
port: settings.useSSL ? 443 : 80,
path: '/db/' + (_this7.options.dbid && !settings.flags.dbidAsParam ? _this7.options.dbid : 'main') + '?act=' + _this7.action + (!settings.flags.useXML ? _this7.payload : ''),
path: settings.path + 'db/' + (_this7.options.dbid && !settings.flags.dbidAsParam ? _this7.options.dbid : 'main') + '?act=' + _this7.action + (!settings.flags.useXML ? _this7.payload : ''),
method: settings.flags.useXML ? 'POST' : 'GET',
headers: {
'Content-Type': 'application/xml; charset=' + _this7.options.encoding,
Expand Down
3 changes: 2 additions & 1 deletion quickbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class QuickBaseError extends Error {
const defaults = {
realm: 'www',
domain: 'quickbase.com',
path: '/',
useSSL: true,

username: '',
Expand Down Expand Up @@ -475,7 +476,7 @@ class QueryBuilder {
const options = {
hostname: [ settings.realm, settings.domain ].join('.'),
port: settings.useSSL ? 443 : 80,
path: '/db/' + (this.options.dbid && !settings.flags.dbidAsParam ? this.options.dbid : 'main') + '?act=' + this.action + (!settings.flags.useXML ? this.payload : ''),
path: settings.path + 'db/' + (this.options.dbid && !settings.flags.dbidAsParam ? this.options.dbid : 'main') + '?act=' + this.action + (!settings.flags.useXML ? this.payload : ''),
method: settings.flags.useXML ? 'POST' : 'GET',
headers: {
'Content-Type': 'application/xml; charset=' + this.options.encoding,
Expand Down
2 changes: 1 addition & 1 deletion quickbase.sa.min.js

Large diffs are not rendered by default.

0 comments on commit 0ffd6dd

Please sign in to comment.