mongodb-stitch
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -165,2 +165,6 @@ 'use strict'; | ||
export: function _export() { | ||
return api._get(appUrl + '/export'); | ||
}, | ||
values: function values() { | ||
@@ -167,0 +171,0 @@ return { |
@@ -17,4 +17,4 @@ 'use strict'; | ||
var version = 'unknown'; | ||
if (typeof "3.0.5" !== 'undefined') { | ||
version = "3.0.5"; | ||
if (typeof "3.0.6" !== 'undefined') { | ||
version = "3.0.6"; | ||
} | ||
@@ -21,0 +21,0 @@ var SDK_VERSION = exports.SDK_VERSION = version; |
{ | ||
"name": "mongodb-stitch", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -73,22 +73,1 @@ # mongodb-stitch | ||
### Building | ||
If this library is being used to compile to a web format, you must compile some of its dependencies to ES5. The following dependencies use ES6 and are not compiled to ES5: | ||
* [mongodb-extjson](https://github.com/mongodb-js/mongodb-extjson) | ||
* [bson](https://github.com/mongodb/js-bson) | ||
#### Building for the Web with webpack | ||
In order to compile the pure ES6 dependencies of this library to ES5, [babel-loader](https://github.com/babel/babel-loader) can be used. See the section on usage ([https://github.com/babel/babel-loader#usage](https://github.com/babel/babel-loader#usage)) for how to load specific files. For this library, you must include the above dependencies in your `node_modules` for compilation to ES5. | ||
The following rule loads any `.js` or `.jsx` file unless it's within `node_modules` (excluding the above dependencies): | ||
``` | ||
{ | ||
test: /\.jsx?$/, | ||
exclude: /node_modules\/(?!(mongodb-extjson|bson))/, | ||
loaders: ['babel-loader'] | ||
} | ||
``` | ||
@@ -167,2 +167,4 @@ /* global window, fetch */ | ||
export: () => api._get(`${appUrl}/export`), | ||
values: () => ({ | ||
@@ -169,0 +171,0 @@ list: () => api._get(`${appUrl}/values`), |
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 too big to display
Sorry, the diff of this file is not supported yet
20388
4166648
73