forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 2.3.0
This commit is contained in:
@@ -470,7 +470,7 @@
|
||||
if (_this.enableCookies && typeof window === 'undefined'){
|
||||
_this.agent.saveCookies(response);
|
||||
}
|
||||
resolve({data, response});
|
||||
resolve({data: data, response: response});
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
|
||||
@@ -53,6 +53,24 @@ browserify main.js > bundle.js
|
||||
|
||||
Then include *bundle.js* in the HTML pages.
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error:
|
||||
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
|
||||
the following section to your webpack config:
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
parser: {
|
||||
amd: false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
Please follow the [installation](#installation) instruction and execute the following JS code:
|
||||
|
||||
@@ -53,6 +53,24 @@ browserify main.js > bundle.js
|
||||
|
||||
Then include *bundle.js* in the HTML pages.
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error:
|
||||
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
|
||||
the following section to your webpack config:
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
parser: {
|
||||
amd: false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
Please follow the [installation](#installation) instruction and execute the following JS code:
|
||||
|
||||
@@ -51,10 +51,10 @@ public:
|
||||
/// </summary>
|
||||
{{^isNotContainer}}{{{datatype}}}& {{getter}}();
|
||||
{{/isNotContainer}}{{#isNotContainer}}{{{datatype}}} {{getter}}() const;
|
||||
void {{setter}}({{{datatype}}} value);
|
||||
{{/isNotContainer}}{{^required}}bool {{baseName}}IsSet() const;
|
||||
void unset{{name}}();
|
||||
{{/required}}
|
||||
void {{setter}}({{{datatype}}} value);
|
||||
{{/isInherited}}
|
||||
{{/vars}}
|
||||
|
||||
|
||||
@@ -408,6 +408,11 @@ void {{classname}}::fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
return m_{{name}};
|
||||
}
|
||||
|
||||
void {{classname}}::{{setter}}({{{datatype}}} value)
|
||||
{
|
||||
m_{{name}} = value;
|
||||
{{^required}}m_{{name}}IsSet = true;{{/required}}
|
||||
}
|
||||
{{/isNotContainer}}
|
||||
{{#isNotContainer}}
|
||||
{{{datatype}}} {{classname}}::{{getter}}() const
|
||||
@@ -415,12 +420,12 @@ void {{classname}}::fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
return m_{{name}};
|
||||
}
|
||||
|
||||
|
||||
void {{classname}}::{{setter}}({{{datatype}}} value)
|
||||
{
|
||||
m_{{name}} = value;
|
||||
{{^required}}m_{{name}}IsSet = true;{{/required}}
|
||||
}
|
||||
|
||||
{{/isNotContainer}}
|
||||
{{^required}}
|
||||
bool {{classname}}::{{baseName}}IsSet() const
|
||||
|
||||
@@ -125,12 +125,12 @@ int32_t ApiResponse::getCode() const
|
||||
return m_Code;
|
||||
}
|
||||
|
||||
|
||||
void ApiResponse::setCode(int32_t value)
|
||||
{
|
||||
m_Code = value;
|
||||
m_CodeIsSet = true;
|
||||
}
|
||||
|
||||
bool ApiResponse::codeIsSet() const
|
||||
{
|
||||
return m_CodeIsSet;
|
||||
@@ -146,12 +146,12 @@ utility::string_t ApiResponse::getType() const
|
||||
return m_Type;
|
||||
}
|
||||
|
||||
|
||||
void ApiResponse::setType(utility::string_t value)
|
||||
{
|
||||
m_Type = value;
|
||||
m_TypeIsSet = true;
|
||||
}
|
||||
|
||||
bool ApiResponse::typeIsSet() const
|
||||
{
|
||||
return m_TypeIsSet;
|
||||
@@ -167,12 +167,12 @@ utility::string_t ApiResponse::getMessage() const
|
||||
return m_Message;
|
||||
}
|
||||
|
||||
|
||||
void ApiResponse::setMessage(utility::string_t value)
|
||||
{
|
||||
m_Message = value;
|
||||
m_MessageIsSet = true;
|
||||
}
|
||||
|
||||
bool ApiResponse::messageIsSet() const
|
||||
{
|
||||
return m_MessageIsSet;
|
||||
|
||||
@@ -57,23 +57,23 @@ public:
|
||||
///
|
||||
/// </summary>
|
||||
int32_t getCode() const;
|
||||
void setCode(int32_t value);
|
||||
bool codeIsSet() const;
|
||||
void unsetCode();
|
||||
void setCode(int32_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getType() const;
|
||||
void setType(utility::string_t value);
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(utility::string_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getMessage() const;
|
||||
void setMessage(utility::string_t value);
|
||||
bool messageIsSet() const;
|
||||
void unsetMessage();
|
||||
void setMessage(utility::string_t value);
|
||||
|
||||
protected:
|
||||
int32_t m_Code;
|
||||
|
||||
@@ -106,12 +106,12 @@ int64_t Category::getId() const
|
||||
return m_Id;
|
||||
}
|
||||
|
||||
|
||||
void Category::setId(int64_t value)
|
||||
{
|
||||
m_Id = value;
|
||||
m_IdIsSet = true;
|
||||
}
|
||||
|
||||
bool Category::idIsSet() const
|
||||
{
|
||||
return m_IdIsSet;
|
||||
@@ -127,12 +127,12 @@ utility::string_t Category::getName() const
|
||||
return m_Name;
|
||||
}
|
||||
|
||||
|
||||
void Category::setName(utility::string_t value)
|
||||
{
|
||||
m_Name = value;
|
||||
m_NameIsSet = true;
|
||||
}
|
||||
|
||||
bool Category::nameIsSet() const
|
||||
{
|
||||
return m_NameIsSet;
|
||||
|
||||
@@ -57,16 +57,16 @@ public:
|
||||
///
|
||||
/// </summary>
|
||||
int64_t getId() const;
|
||||
void setId(int64_t value);
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(int64_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getName() const;
|
||||
void setName(utility::string_t value);
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(utility::string_t value);
|
||||
|
||||
protected:
|
||||
int64_t m_Id;
|
||||
|
||||
@@ -179,12 +179,12 @@ int64_t Order::getId() const
|
||||
return m_Id;
|
||||
}
|
||||
|
||||
|
||||
void Order::setId(int64_t value)
|
||||
{
|
||||
m_Id = value;
|
||||
m_IdIsSet = true;
|
||||
}
|
||||
|
||||
bool Order::idIsSet() const
|
||||
{
|
||||
return m_IdIsSet;
|
||||
@@ -200,12 +200,12 @@ int64_t Order::getPetId() const
|
||||
return m_PetId;
|
||||
}
|
||||
|
||||
|
||||
void Order::setPetId(int64_t value)
|
||||
{
|
||||
m_PetId = value;
|
||||
m_PetIdIsSet = true;
|
||||
}
|
||||
|
||||
bool Order::petIdIsSet() const
|
||||
{
|
||||
return m_PetIdIsSet;
|
||||
@@ -221,12 +221,12 @@ int32_t Order::getQuantity() const
|
||||
return m_Quantity;
|
||||
}
|
||||
|
||||
|
||||
void Order::setQuantity(int32_t value)
|
||||
{
|
||||
m_Quantity = value;
|
||||
m_QuantityIsSet = true;
|
||||
}
|
||||
|
||||
bool Order::quantityIsSet() const
|
||||
{
|
||||
return m_QuantityIsSet;
|
||||
@@ -242,12 +242,12 @@ utility::datetime Order::getShipDate() const
|
||||
return m_ShipDate;
|
||||
}
|
||||
|
||||
|
||||
void Order::setShipDate(utility::datetime value)
|
||||
{
|
||||
m_ShipDate = value;
|
||||
m_ShipDateIsSet = true;
|
||||
}
|
||||
|
||||
bool Order::shipDateIsSet() const
|
||||
{
|
||||
return m_ShipDateIsSet;
|
||||
@@ -263,12 +263,12 @@ utility::string_t Order::getStatus() const
|
||||
return m_Status;
|
||||
}
|
||||
|
||||
|
||||
void Order::setStatus(utility::string_t value)
|
||||
{
|
||||
m_Status = value;
|
||||
m_StatusIsSet = true;
|
||||
}
|
||||
|
||||
bool Order::statusIsSet() const
|
||||
{
|
||||
return m_StatusIsSet;
|
||||
@@ -284,12 +284,12 @@ bool Order::getComplete() const
|
||||
return m_Complete;
|
||||
}
|
||||
|
||||
|
||||
void Order::setComplete(bool value)
|
||||
{
|
||||
m_Complete = value;
|
||||
m_CompleteIsSet = true;
|
||||
}
|
||||
|
||||
bool Order::completeIsSet() const
|
||||
{
|
||||
return m_CompleteIsSet;
|
||||
|
||||
@@ -57,44 +57,44 @@ public:
|
||||
///
|
||||
/// </summary>
|
||||
int64_t getId() const;
|
||||
void setId(int64_t value);
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(int64_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
int64_t getPetId() const;
|
||||
void setPetId(int64_t value);
|
||||
bool petIdIsSet() const;
|
||||
void unsetPetId();
|
||||
void setPetId(int64_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
int32_t getQuantity() const;
|
||||
void setQuantity(int32_t value);
|
||||
bool quantityIsSet() const;
|
||||
void unsetQuantity();
|
||||
void setQuantity(int32_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::datetime getShipDate() const;
|
||||
void setShipDate(utility::datetime value);
|
||||
bool shipDateIsSet() const;
|
||||
void unsetShipDate();
|
||||
void setShipDate(utility::datetime value);
|
||||
/// <summary>
|
||||
/// Order Status
|
||||
/// </summary>
|
||||
utility::string_t getStatus() const;
|
||||
void setStatus(utility::string_t value);
|
||||
bool statusIsSet() const;
|
||||
void unsetStatus();
|
||||
void setStatus(utility::string_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
bool getComplete() const;
|
||||
void setComplete(bool value);
|
||||
bool completeIsSet() const;
|
||||
void unsetComplete();
|
||||
void setComplete(bool value);
|
||||
|
||||
protected:
|
||||
int64_t m_Id;
|
||||
|
||||
@@ -240,12 +240,12 @@ int64_t Pet::getId() const
|
||||
return m_Id;
|
||||
}
|
||||
|
||||
|
||||
void Pet::setId(int64_t value)
|
||||
{
|
||||
m_Id = value;
|
||||
m_IdIsSet = true;
|
||||
}
|
||||
|
||||
bool Pet::idIsSet() const
|
||||
{
|
||||
return m_IdIsSet;
|
||||
@@ -261,12 +261,12 @@ std::shared_ptr<Category> Pet::getCategory() const
|
||||
return m_Category;
|
||||
}
|
||||
|
||||
|
||||
void Pet::setCategory(std::shared_ptr<Category> value)
|
||||
{
|
||||
m_Category = value;
|
||||
m_CategoryIsSet = true;
|
||||
}
|
||||
|
||||
bool Pet::categoryIsSet() const
|
||||
{
|
||||
return m_CategoryIsSet;
|
||||
@@ -282,22 +282,32 @@ utility::string_t Pet::getName() const
|
||||
return m_Name;
|
||||
}
|
||||
|
||||
|
||||
void Pet::setName(utility::string_t value)
|
||||
{
|
||||
m_Name = value;
|
||||
|
||||
}
|
||||
|
||||
std::vector<utility::string_t>& Pet::getPhotoUrls()
|
||||
{
|
||||
return m_PhotoUrls;
|
||||
}
|
||||
|
||||
void Pet::setPhotoUrls(std::vector<utility::string_t> value)
|
||||
{
|
||||
m_PhotoUrls = value;
|
||||
|
||||
}
|
||||
std::vector<std::shared_ptr<Tag>>& Pet::getTags()
|
||||
{
|
||||
return m_Tags;
|
||||
}
|
||||
|
||||
void Pet::setTags(std::vector<std::shared_ptr<Tag>> value)
|
||||
{
|
||||
m_Tags = value;
|
||||
m_TagsIsSet = true;
|
||||
}
|
||||
bool Pet::tagsIsSet() const
|
||||
{
|
||||
return m_TagsIsSet;
|
||||
@@ -313,12 +323,12 @@ utility::string_t Pet::getStatus() const
|
||||
return m_Status;
|
||||
}
|
||||
|
||||
|
||||
void Pet::setStatus(utility::string_t value)
|
||||
{
|
||||
m_Status = value;
|
||||
m_StatusIsSet = true;
|
||||
}
|
||||
|
||||
bool Pet::statusIsSet() const
|
||||
{
|
||||
return m_StatusIsSet;
|
||||
|
||||
@@ -60,38 +60,40 @@ public:
|
||||
///
|
||||
/// </summary>
|
||||
int64_t getId() const;
|
||||
void setId(int64_t value);
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(int64_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
std::shared_ptr<Category> getCategory() const;
|
||||
void setCategory(std::shared_ptr<Category> value);
|
||||
bool categoryIsSet() const;
|
||||
void unsetCategory();
|
||||
void setCategory(std::shared_ptr<Category> value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getName() const;
|
||||
void setName(utility::string_t value);
|
||||
/// <summary>
|
||||
void setName(utility::string_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
std::vector<utility::string_t>& getPhotoUrls();
|
||||
/// <summary>
|
||||
void setPhotoUrls(std::vector<utility::string_t> value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
std::vector<std::shared_ptr<Tag>>& getTags();
|
||||
bool tagsIsSet() const;
|
||||
void unsetTags();
|
||||
void setTags(std::vector<std::shared_ptr<Tag>> value);
|
||||
/// <summary>
|
||||
/// pet status in the store
|
||||
/// </summary>
|
||||
utility::string_t getStatus() const;
|
||||
void setStatus(utility::string_t value);
|
||||
bool statusIsSet() const;
|
||||
void unsetStatus();
|
||||
void setStatus(utility::string_t value);
|
||||
|
||||
protected:
|
||||
int64_t m_Id;
|
||||
|
||||
@@ -106,12 +106,12 @@ int64_t Tag::getId() const
|
||||
return m_Id;
|
||||
}
|
||||
|
||||
|
||||
void Tag::setId(int64_t value)
|
||||
{
|
||||
m_Id = value;
|
||||
m_IdIsSet = true;
|
||||
}
|
||||
|
||||
bool Tag::idIsSet() const
|
||||
{
|
||||
return m_IdIsSet;
|
||||
@@ -127,12 +127,12 @@ utility::string_t Tag::getName() const
|
||||
return m_Name;
|
||||
}
|
||||
|
||||
|
||||
void Tag::setName(utility::string_t value)
|
||||
{
|
||||
m_Name = value;
|
||||
m_NameIsSet = true;
|
||||
}
|
||||
|
||||
bool Tag::nameIsSet() const
|
||||
{
|
||||
return m_NameIsSet;
|
||||
|
||||
@@ -57,16 +57,16 @@ public:
|
||||
///
|
||||
/// </summary>
|
||||
int64_t getId() const;
|
||||
void setId(int64_t value);
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(int64_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getName() const;
|
||||
void setName(utility::string_t value);
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(utility::string_t value);
|
||||
|
||||
protected:
|
||||
int64_t m_Id;
|
||||
|
||||
@@ -219,12 +219,12 @@ int64_t User::getId() const
|
||||
return m_Id;
|
||||
}
|
||||
|
||||
|
||||
void User::setId(int64_t value)
|
||||
{
|
||||
m_Id = value;
|
||||
m_IdIsSet = true;
|
||||
}
|
||||
|
||||
bool User::idIsSet() const
|
||||
{
|
||||
return m_IdIsSet;
|
||||
@@ -240,12 +240,12 @@ utility::string_t User::getUsername() const
|
||||
return m_Username;
|
||||
}
|
||||
|
||||
|
||||
void User::setUsername(utility::string_t value)
|
||||
{
|
||||
m_Username = value;
|
||||
m_UsernameIsSet = true;
|
||||
}
|
||||
|
||||
bool User::usernameIsSet() const
|
||||
{
|
||||
return m_UsernameIsSet;
|
||||
@@ -261,12 +261,12 @@ utility::string_t User::getFirstName() const
|
||||
return m_FirstName;
|
||||
}
|
||||
|
||||
|
||||
void User::setFirstName(utility::string_t value)
|
||||
{
|
||||
m_FirstName = value;
|
||||
m_FirstNameIsSet = true;
|
||||
}
|
||||
|
||||
bool User::firstNameIsSet() const
|
||||
{
|
||||
return m_FirstNameIsSet;
|
||||
@@ -282,12 +282,12 @@ utility::string_t User::getLastName() const
|
||||
return m_LastName;
|
||||
}
|
||||
|
||||
|
||||
void User::setLastName(utility::string_t value)
|
||||
{
|
||||
m_LastName = value;
|
||||
m_LastNameIsSet = true;
|
||||
}
|
||||
|
||||
bool User::lastNameIsSet() const
|
||||
{
|
||||
return m_LastNameIsSet;
|
||||
@@ -303,12 +303,12 @@ utility::string_t User::getEmail() const
|
||||
return m_Email;
|
||||
}
|
||||
|
||||
|
||||
void User::setEmail(utility::string_t value)
|
||||
{
|
||||
m_Email = value;
|
||||
m_EmailIsSet = true;
|
||||
}
|
||||
|
||||
bool User::emailIsSet() const
|
||||
{
|
||||
return m_EmailIsSet;
|
||||
@@ -324,12 +324,12 @@ utility::string_t User::getPassword() const
|
||||
return m_Password;
|
||||
}
|
||||
|
||||
|
||||
void User::setPassword(utility::string_t value)
|
||||
{
|
||||
m_Password = value;
|
||||
m_PasswordIsSet = true;
|
||||
}
|
||||
|
||||
bool User::passwordIsSet() const
|
||||
{
|
||||
return m_PasswordIsSet;
|
||||
@@ -345,12 +345,12 @@ utility::string_t User::getPhone() const
|
||||
return m_Phone;
|
||||
}
|
||||
|
||||
|
||||
void User::setPhone(utility::string_t value)
|
||||
{
|
||||
m_Phone = value;
|
||||
m_PhoneIsSet = true;
|
||||
}
|
||||
|
||||
bool User::phoneIsSet() const
|
||||
{
|
||||
return m_PhoneIsSet;
|
||||
@@ -366,12 +366,12 @@ int32_t User::getUserStatus() const
|
||||
return m_UserStatus;
|
||||
}
|
||||
|
||||
|
||||
void User::setUserStatus(int32_t value)
|
||||
{
|
||||
m_UserStatus = value;
|
||||
m_UserStatusIsSet = true;
|
||||
}
|
||||
|
||||
bool User::userStatusIsSet() const
|
||||
{
|
||||
return m_UserStatusIsSet;
|
||||
|
||||
@@ -57,58 +57,58 @@ public:
|
||||
///
|
||||
/// </summary>
|
||||
int64_t getId() const;
|
||||
void setId(int64_t value);
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(int64_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getUsername() const;
|
||||
void setUsername(utility::string_t value);
|
||||
bool usernameIsSet() const;
|
||||
void unsetUsername();
|
||||
void setUsername(utility::string_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getFirstName() const;
|
||||
void setFirstName(utility::string_t value);
|
||||
bool firstNameIsSet() const;
|
||||
void unsetFirstName();
|
||||
void setFirstName(utility::string_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getLastName() const;
|
||||
void setLastName(utility::string_t value);
|
||||
bool lastNameIsSet() const;
|
||||
void unsetLastName();
|
||||
void setLastName(utility::string_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getEmail() const;
|
||||
void setEmail(utility::string_t value);
|
||||
bool emailIsSet() const;
|
||||
void unsetEmail();
|
||||
void setEmail(utility::string_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getPassword() const;
|
||||
void setPassword(utility::string_t value);
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(utility::string_t value);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
utility::string_t getPhone() const;
|
||||
void setPhone(utility::string_t value);
|
||||
bool phoneIsSet() const;
|
||||
void unsetPhone();
|
||||
void setPhone(utility::string_t value);
|
||||
/// <summary>
|
||||
/// User Status
|
||||
/// </summary>
|
||||
int32_t getUserStatus() const;
|
||||
void setUserStatus(int32_t value);
|
||||
bool userStatusIsSet() const;
|
||||
void unsetUserStatus();
|
||||
void setUserStatus(int32_t value);
|
||||
|
||||
protected:
|
||||
int64_t m_Id;
|
||||
|
||||
@@ -45,6 +45,24 @@ browserify main.js > bundle.js
|
||||
|
||||
Then include *bundle.js* in the HTML pages.
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error:
|
||||
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
|
||||
the following section to your webpack config:
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
parser: {
|
||||
amd: false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
Please follow the [installation](#installation) instruction and execute the following JS code:
|
||||
|
||||
@@ -45,6 +45,24 @@ browserify main.js > bundle.js
|
||||
|
||||
Then include *bundle.js* in the HTML pages.
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error:
|
||||
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
|
||||
the following section to your webpack config:
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
parser: {
|
||||
amd: false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
Please follow the [installation](#installation) instruction and execute the following JS code:
|
||||
|
||||
@@ -45,6 +45,24 @@ browserify main.js > bundle.js
|
||||
|
||||
Then include *bundle.js* in the HTML pages.
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error:
|
||||
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
|
||||
the following section to your webpack config:
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
parser: {
|
||||
amd: false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
Please follow the [installation](#installation) instruction and execute the following JS code:
|
||||
|
||||
@@ -467,7 +467,7 @@
|
||||
if (_this.enableCookies && typeof window === 'undefined'){
|
||||
_this.agent.saveCookies(response);
|
||||
}
|
||||
resolve({data, response});
|
||||
resolve({data: data, response: response});
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
|
||||
@@ -45,6 +45,24 @@ browserify main.js > bundle.js
|
||||
|
||||
Then include *bundle.js* in the HTML pages.
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error:
|
||||
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
|
||||
the following section to your webpack config:
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
parser: {
|
||||
amd: false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
Please follow the [installation](#installation) instruction and execute the following JS code:
|
||||
|
||||
Reference in New Issue
Block a user