@bbn/bbn 1.0.477 → 1.0.478

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -292,6 +292,18 @@ export default function ajax(url, datatype = null, data = null, success = null,
292
292
  "Content-Type": "text/javascript",
293
293
  };
294
294
  }
295
+ else if (datatype === "json") {
296
+ options['headers'] = {
297
+ accept: "application/json",
298
+ "Content-Type": "application/json",
299
+ };
300
+ }
301
+ else if (datatype === "html") {
302
+ options['headers'] = {
303
+ accept: "text/html",
304
+ "Content-Type": "text/html",
305
+ };
306
+ }
295
307
  let method = "get";
296
308
  if (isObject(data)) {
297
309
  if (numProperties(data) > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.477",
3
+ "version": "1.0.478",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",