@bbn/bbn 2.0.121 → 2.0.123

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.
package/dist/com.js CHANGED
@@ -108,7 +108,7 @@ const xhrRequest = (method, url, config = {}, aborter) => {
108
108
  const xhr = new XMLHttpRequest();
109
109
  const hasBody = methodsWithBody.includes(method.toUpperCase());
110
110
  const promise = new Promise((resolve, reject) => {
111
- xhr.open(method, url, true);
111
+ xhr.open(method.toUpperCase(), url, true);
112
112
  // Set headers
113
113
  const { body, headers } = normalizeDataAndHeaders(config.data, config.headers);
114
114
  headers.forEach((value, key) => {
@@ -539,6 +539,10 @@ export default function parse(input, format, cls = 'auto', force, locale) {
539
539
  i += 1;
540
540
  }
541
541
  }
542
+ if (!ctx.month && (fmt === "YYYY-MM-DD HH:mm:ss")) {
543
+ bbn.fn.log(i);
544
+ debugger;
545
+ }
542
546
  const fullRegex = new RegExp('^' + pattern + '$');
543
547
  let match = fullRegex.exec(input);
544
548
  if (!match) {
@@ -20,10 +20,8 @@ import com from '../../com.js';
20
20
  export default function upload(url, file, success = null, failure = null, progress = null) {
21
21
  const fn = () => {
22
22
  return com.run('post', url || bbn.env.path, {
23
- data: objectToFormData({ file }),
24
- headers: {
25
- 'Content-Type': 'multipart/form-data',
26
- },
23
+ data: objectToFormData(file),
24
+ headers: {},
27
25
  onUploadProgress(progressEvent) {
28
26
  if (progress) {
29
27
  let percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.121",
3
+ "version": "2.0.123",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",