Skip to content

Failing to generate dist and docs files with the same syntax #39

Description

@bpinto

Running npm run watch (or npm run prepare directly) is generating a lot of local changes. I'm not sure if I'm missing come configuration.

> git status

M  dist/karet.xhr.cjs.js
M  dist/karet.xhr.es.js
M  dist/karet.xhr.js
M  dist/karet.xhr.min.js
M  docs/karet.xhr.js
❯ git diff | head -n 40
diff --git a/dist/karet.xhr.cjs.js b/dist/karet.xhr.cjs.js
index b5d32de..104c77e 100644
--- a/dist/karet.xhr.cjs.js
+++ b/dist/karet.xhr.cjs.js
@@ -148,6 +148,8 @@ var typeLoad = /*#__PURE__*/I.freeze({ type: LOAD });
 
 var eventTypes = [LOADSTART, PROGRESS, LOAD, TIMEOUT, ERROR];
 
+var simpleSettings = [OVERRIDE_MIME_TYPE, RESPONSE_TYPE, TIMEOUT, WITH_CREDENTIALS];
+
 var hasKeys = function hasKeys(x) {
   return I.isFunction(x.keys);
 };
@@ -164,37 +166,32 @@ var headersMap = /*#__PURE__*/V.and( /*#__PURE__*/V.acceptWith(function (xs) {
 }));
 
 var performPlain = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? I.id : V.validate(V.freeFn(V.tuple(V.props({
-  url: string,
-  method: V.optional(string),
-  user: V.optional(string),
-  password: V.optional(string),
+  body: V.optional(V.accept),
   headers: V.propsOr(headerValue, I.object0),
+  method: V.optional(string),
   overrideMimeType: V.optional(string),
-  body: V.optional(V.accept),
+  password: V.optional(string),
   responseType: V.optional(string),
   timeout: V.optional(number),
+  url: string,
+  user: V.optional(string),
   withCredentials: V.optional(boolean)
 })), V.accept)))(function perform(args) {
   return delayUnsub(K.stream(function (_ref) {
     var emit = _ref.emit,
         end = _ref.end;
 
-    var url = args.url;
     var method = args.method;
     var user = args.user;

Do you know what could be happening? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions