@zthun/helpful-internet 9.6.0 → 9.9.0
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/index.cjs +305 -574
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +305 -574
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Represents a generic cookie.
|
|
3
|
-
*/ function
|
|
4
|
-
if (!(instance instanceof Constructor)) {
|
|
5
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
function _defineProperties$5(target, props) {
|
|
9
|
-
for(var i = 0; i < props.length; i++){
|
|
10
|
-
var descriptor = props[i];
|
|
11
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
12
|
-
descriptor.configurable = true;
|
|
13
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
14
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
function _create_class$5(Constructor, protoProps, staticProps) {
|
|
18
|
-
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
19
|
-
return Constructor;
|
|
20
|
-
}
|
|
21
|
-
function _define_property$5(obj, key, value) {
|
|
3
|
+
*/ function _define_property$5(obj, key, value) {
|
|
22
4
|
if (key in obj) {
|
|
23
5
|
Object.defineProperty(obj, key, {
|
|
24
6
|
value: value,
|
|
@@ -31,54 +13,10 @@ function _define_property$5(obj, key, value) {
|
|
|
31
13
|
}
|
|
32
14
|
return obj;
|
|
33
15
|
}
|
|
34
|
-
function _object_spread(target) {
|
|
35
|
-
for(var i = 1; i < arguments.length; i++){
|
|
36
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
37
|
-
var ownKeys = Object.keys(source);
|
|
38
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
39
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
40
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
ownKeys.forEach(function(key) {
|
|
44
|
-
_define_property$5(target, key, source[key]);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
return target;
|
|
48
|
-
}
|
|
49
16
|
/**
|
|
50
17
|
* Represents a builder for an IZCookie object.
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
_class_call_check$5(this, ZCookieBuilder);
|
|
54
|
-
_define_property$5(this, "_cookie", void 0);
|
|
55
|
-
/**
|
|
56
|
-
* Removes the cookie expiration.
|
|
57
|
-
*
|
|
58
|
-
* @returns
|
|
59
|
-
* This object.
|
|
60
|
-
*/ _define_property$5(this, "immortal", this.expires.bind(this, undefined));
|
|
61
|
-
/**
|
|
62
|
-
* Sets the same site policy to 'lax'
|
|
63
|
-
*
|
|
64
|
-
* @returns
|
|
65
|
-
* This object.
|
|
66
|
-
*/ _define_property$5(this, "lax", this.sameSite.bind(this, "lax"));
|
|
67
|
-
/**
|
|
68
|
-
* Sets the same site polity to 'strict'
|
|
69
|
-
*
|
|
70
|
-
* @returns
|
|
71
|
-
* This object.
|
|
72
|
-
*/ _define_property$5(this, "strict", this.sameSite.bind(this, "strict"));
|
|
73
|
-
this._cookie = {
|
|
74
|
-
name: "",
|
|
75
|
-
value: ""
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
_create_class$5(ZCookieBuilder, [
|
|
79
|
-
{
|
|
80
|
-
key: "name",
|
|
81
|
-
value: /**
|
|
18
|
+
*/ class ZCookieBuilder {
|
|
19
|
+
/**
|
|
82
20
|
* Sets the cookie name.
|
|
83
21
|
*
|
|
84
22
|
* @param val -
|
|
@@ -86,14 +24,11 @@ function _object_spread(target) {
|
|
|
86
24
|
*
|
|
87
25
|
* @returns
|
|
88
26
|
* This object.
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
{
|
|
95
|
-
key: "value",
|
|
96
|
-
value: /**
|
|
27
|
+
*/ name(val) {
|
|
28
|
+
this._cookie.name = val;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
97
32
|
* Sets the cookie value.
|
|
98
33
|
*
|
|
99
34
|
* @param val -
|
|
@@ -101,14 +36,11 @@ function _object_spread(target) {
|
|
|
101
36
|
*
|
|
102
37
|
* @returns
|
|
103
38
|
* This object.
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
{
|
|
110
|
-
key: "domain",
|
|
111
|
-
value: /**
|
|
39
|
+
*/ value(val) {
|
|
40
|
+
this._cookie.value = val;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
112
44
|
* Sets the cookie domain.
|
|
113
45
|
*
|
|
114
46
|
* @param val -
|
|
@@ -116,14 +48,11 @@ function _object_spread(target) {
|
|
|
116
48
|
*
|
|
117
49
|
* @returns
|
|
118
50
|
* This object.
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
{
|
|
125
|
-
key: "expires",
|
|
126
|
-
value: /**
|
|
51
|
+
*/ domain(val) {
|
|
52
|
+
this._cookie.domain = val;
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
127
56
|
* Sets the cookie expiration date.
|
|
128
57
|
*
|
|
129
58
|
* @param val -
|
|
@@ -131,29 +60,23 @@ function _object_spread(target) {
|
|
|
131
60
|
*
|
|
132
61
|
* @returns
|
|
133
62
|
* This object.
|
|
134
|
-
*/
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
{
|
|
144
|
-
key: "expiresTomorrow",
|
|
145
|
-
value: /**
|
|
63
|
+
*/ expires(val) {
|
|
64
|
+
if (val == null) {
|
|
65
|
+
delete this._cookie.expires;
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
this._cookie.expires = typeof val === "string" ? val : val.toJSON();
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
146
72
|
* Sets the cookie expiration date to one day from the moment this is invoked.
|
|
147
73
|
*
|
|
148
74
|
* @returns
|
|
149
75
|
* This object.
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
{
|
|
155
|
-
key: "secure",
|
|
156
|
-
value: /**
|
|
76
|
+
*/ expiresTomorrow() {
|
|
77
|
+
return this.expires(new Date(Date.now() + ZCookieBuilder.MillisecondsOneDay));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
157
80
|
* Sets the cookie secure flag.
|
|
158
81
|
*
|
|
159
82
|
* @param val -
|
|
@@ -161,15 +84,11 @@ function _object_spread(target) {
|
|
|
161
84
|
*
|
|
162
85
|
* @returns
|
|
163
86
|
* This object.
|
|
164
|
-
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
key: "sameSite",
|
|
172
|
-
value: /**
|
|
87
|
+
*/ secure(val = true) {
|
|
88
|
+
this._cookie.secure = val;
|
|
89
|
+
return this;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
173
92
|
* Sets the cookie same site policy.
|
|
174
93
|
*
|
|
175
94
|
* @param val -
|
|
@@ -177,25 +96,19 @@ function _object_spread(target) {
|
|
|
177
96
|
*
|
|
178
97
|
* @returns
|
|
179
98
|
* This object.
|
|
180
|
-
*/
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
{
|
|
186
|
-
key: "allowCrossSite",
|
|
187
|
-
value: /**
|
|
99
|
+
*/ sameSite(val) {
|
|
100
|
+
this._cookie.sameSite = val;
|
|
101
|
+
return this;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
188
104
|
* Sets the same site policy to 'none' and turns on the secure flag.
|
|
189
105
|
*
|
|
190
106
|
* @returns
|
|
191
107
|
* This object.
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
{
|
|
197
|
-
key: "httpOnly",
|
|
198
|
-
value: /**
|
|
108
|
+
*/ allowCrossSite() {
|
|
109
|
+
return this.secure().sameSite("none");
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
199
112
|
* Sets the cookie http only flag.
|
|
200
113
|
*
|
|
201
114
|
* @param val -
|
|
@@ -203,15 +116,11 @@ function _object_spread(target) {
|
|
|
203
116
|
*
|
|
204
117
|
* @returns
|
|
205
118
|
* This object.
|
|
206
|
-
*/
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
key: "authentication",
|
|
214
|
-
value: /**
|
|
119
|
+
*/ httpOnly(val = true) {
|
|
120
|
+
this._cookie.httpOnly = val;
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
215
124
|
* Creates a token based authentication cookie.
|
|
216
125
|
*
|
|
217
126
|
* @param token -
|
|
@@ -221,45 +130,50 @@ function _object_spread(target) {
|
|
|
221
130
|
*
|
|
222
131
|
* @returns
|
|
223
132
|
* This object.
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
{
|
|
230
|
-
key: "build",
|
|
231
|
-
value: /**
|
|
133
|
+
*/ authentication(token) {
|
|
134
|
+
const builder = this.name("Authentication").expiresTomorrow().secure().httpOnly();
|
|
135
|
+
return token == null ? builder : builder.value(token);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
232
138
|
* Returns a copy of the built instance of the cookie.
|
|
233
139
|
*
|
|
234
140
|
* @returns
|
|
235
141
|
* A shallow copy of the current cookie object.
|
|
236
|
-
*/
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
]);
|
|
241
|
-
return ZCookieBuilder;
|
|
242
|
-
}();
|
|
243
|
-
_define_property$5(ZCookieBuilder, "MillisecondsOneDay", 86400000);
|
|
244
|
-
|
|
245
|
-
function _class_call_check$4(instance, Constructor) {
|
|
246
|
-
if (!(instance instanceof Constructor)) {
|
|
247
|
-
throw new TypeError("Cannot call a class as a function");
|
|
142
|
+
*/ build() {
|
|
143
|
+
return {
|
|
144
|
+
...this._cookie
|
|
145
|
+
};
|
|
248
146
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
147
|
+
/**
|
|
148
|
+
* Initializes a new instance of this object.
|
|
149
|
+
*/ constructor(){
|
|
150
|
+
_define_property$5(this, "_cookie", void 0);
|
|
151
|
+
/**
|
|
152
|
+
* Removes the cookie expiration.
|
|
153
|
+
*
|
|
154
|
+
* @returns
|
|
155
|
+
* This object.
|
|
156
|
+
*/ _define_property$5(this, "immortal", this.expires.bind(this, undefined));
|
|
157
|
+
/**
|
|
158
|
+
* Sets the same site policy to 'lax'
|
|
159
|
+
*
|
|
160
|
+
* @returns
|
|
161
|
+
* This object.
|
|
162
|
+
*/ _define_property$5(this, "lax", this.sameSite.bind(this, "lax"));
|
|
163
|
+
/**
|
|
164
|
+
* Sets the same site polity to 'strict'
|
|
165
|
+
*
|
|
166
|
+
* @returns
|
|
167
|
+
* This object.
|
|
168
|
+
*/ _define_property$5(this, "strict", this.sameSite.bind(this, "strict"));
|
|
169
|
+
this._cookie = {
|
|
170
|
+
name: "",
|
|
171
|
+
value: ""
|
|
172
|
+
};
|
|
257
173
|
}
|
|
258
174
|
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
return Constructor;
|
|
262
|
-
}
|
|
175
|
+
_define_property$5(ZCookieBuilder, "MillisecondsOneDay", 86400000);
|
|
176
|
+
|
|
263
177
|
function _define_property$4(obj, key, value) {
|
|
264
178
|
if (key in obj) {
|
|
265
179
|
Object.defineProperty(obj, key, {
|
|
@@ -276,16 +190,8 @@ function _define_property$4(obj, key, value) {
|
|
|
276
190
|
/**
|
|
277
191
|
* Represents a builder that will build a comma separated
|
|
278
192
|
* list of addresses for an email message.
|
|
279
|
-
*/
|
|
280
|
-
|
|
281
|
-
_class_call_check$4(this, ZEmailContactAddressBuilder);
|
|
282
|
-
_define_property$4(this, "_addresses", []);
|
|
283
|
-
_define_property$4(this, "_delimiter", ", ");
|
|
284
|
-
}
|
|
285
|
-
_create_class$4(ZEmailContactAddressBuilder, [
|
|
286
|
-
{
|
|
287
|
-
key: "address",
|
|
288
|
-
value: /**
|
|
193
|
+
*/ class ZEmailContactAddressBuilder {
|
|
194
|
+
/**
|
|
289
195
|
* Adds an address to the list to builder.
|
|
290
196
|
*
|
|
291
197
|
* @param val -
|
|
@@ -294,14 +200,11 @@ function _define_property$4(obj, key, value) {
|
|
|
294
200
|
*
|
|
295
201
|
* @returns
|
|
296
202
|
* This object.
|
|
297
|
-
*/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
{
|
|
303
|
-
key: "addresses",
|
|
304
|
-
value: /**
|
|
203
|
+
*/ address(val) {
|
|
204
|
+
this._addresses.push(val);
|
|
205
|
+
return this;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
305
208
|
* Sets the addresses to build from.
|
|
306
209
|
*
|
|
307
210
|
* @param val -
|
|
@@ -309,14 +212,11 @@ function _define_property$4(obj, key, value) {
|
|
|
309
212
|
*
|
|
310
213
|
* @returns
|
|
311
214
|
* This object.
|
|
312
|
-
*/
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
{
|
|
318
|
-
key: "delimiter",
|
|
319
|
-
value: /**
|
|
215
|
+
*/ addresses(val) {
|
|
216
|
+
this._addresses = val.slice();
|
|
217
|
+
return this;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
320
220
|
* Sets the delimiter to split the addresses with.
|
|
321
221
|
*
|
|
322
222
|
* The default is a comma with a space.
|
|
@@ -326,56 +226,36 @@ function _define_property$4(obj, key, value) {
|
|
|
326
226
|
*
|
|
327
227
|
* @returns
|
|
328
228
|
* This object.
|
|
329
|
-
*/
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
{
|
|
335
|
-
key: "build",
|
|
336
|
-
value: /**
|
|
229
|
+
*/ delimiter(val) {
|
|
230
|
+
this._delimiter = val;
|
|
231
|
+
return this;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
337
234
|
* Builds the delimiters separated list of addresses.
|
|
338
235
|
*
|
|
339
236
|
* @returns
|
|
340
237
|
* The delimited separated list of addresses.
|
|
341
|
-
*/
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
return typeof ct === "string" ? ct : ct.address;
|
|
347
|
-
};
|
|
348
|
-
var truthy = function(ct) {
|
|
349
|
-
return !!ct;
|
|
350
|
-
};
|
|
351
|
-
return this._addresses.map(addr).filter(truthy).join(this._delimiter);
|
|
238
|
+
*/ build() {
|
|
239
|
+
const addr = (ct)=>{
|
|
240
|
+
if (!ct) {
|
|
241
|
+
return undefined;
|
|
352
242
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
* Represents an email contact.
|
|
360
|
-
*/ function _class_call_check$3(instance, Constructor) {
|
|
361
|
-
if (!(instance instanceof Constructor)) {
|
|
362
|
-
throw new TypeError("Cannot call a class as a function");
|
|
243
|
+
return typeof ct === "string" ? ct : ct.address;
|
|
244
|
+
};
|
|
245
|
+
const truthy = (ct)=>{
|
|
246
|
+
return !!ct;
|
|
247
|
+
};
|
|
248
|
+
return this._addresses.map(addr).filter(truthy).join(this._delimiter);
|
|
363
249
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
var descriptor = props[i];
|
|
368
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
369
|
-
descriptor.configurable = true;
|
|
370
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
371
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
250
|
+
constructor(){
|
|
251
|
+
_define_property$4(this, "_addresses", []);
|
|
252
|
+
_define_property$4(this, "_delimiter", ", ");
|
|
372
253
|
}
|
|
373
254
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
function _define_property$3(obj, key, value) {
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Represents an email contact.
|
|
258
|
+
*/ function _define_property$3(obj, key, value) {
|
|
379
259
|
if (key in obj) {
|
|
380
260
|
Object.defineProperty(obj, key, {
|
|
381
261
|
value: value,
|
|
@@ -390,18 +270,8 @@ function _define_property$3(obj, key, value) {
|
|
|
390
270
|
}
|
|
391
271
|
/**
|
|
392
272
|
* Represents a builder for an email contact.
|
|
393
|
-
*/
|
|
394
|
-
|
|
395
|
-
_class_call_check$3(this, ZEmailContactBuilder);
|
|
396
|
-
_define_property$3(this, "_contact", void 0);
|
|
397
|
-
this._contact = {
|
|
398
|
-
address: ""
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
_create_class$3(ZEmailContactBuilder, [
|
|
402
|
-
{
|
|
403
|
-
key: "address",
|
|
404
|
-
value: /**
|
|
273
|
+
*/ class ZEmailContactBuilder {
|
|
274
|
+
/**
|
|
405
275
|
* Sets the address of the contact.
|
|
406
276
|
*
|
|
407
277
|
* @param val -
|
|
@@ -409,14 +279,11 @@ function _define_property$3(obj, key, value) {
|
|
|
409
279
|
*
|
|
410
280
|
* @returns
|
|
411
281
|
* This object.
|
|
412
|
-
*/
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
{
|
|
418
|
-
key: "type",
|
|
419
|
-
value: /**
|
|
282
|
+
*/ address(val) {
|
|
283
|
+
this._contact.address = val;
|
|
284
|
+
return this;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
420
287
|
* Sets the type of the contact.
|
|
421
288
|
*
|
|
422
289
|
* @param val -
|
|
@@ -424,14 +291,11 @@ function _define_property$3(obj, key, value) {
|
|
|
424
291
|
*
|
|
425
292
|
* @returns
|
|
426
293
|
* This object.
|
|
427
|
-
*/
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
{
|
|
433
|
-
key: "display",
|
|
434
|
-
value: /**
|
|
294
|
+
*/ type(val) {
|
|
295
|
+
this._contact.type = val;
|
|
296
|
+
return this;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
435
299
|
* Sets the display of the contact.
|
|
436
300
|
*
|
|
437
301
|
* @param val -
|
|
@@ -439,14 +303,11 @@ function _define_property$3(obj, key, value) {
|
|
|
439
303
|
*
|
|
440
304
|
* @returns
|
|
441
305
|
* This object.
|
|
442
|
-
*/
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
{
|
|
448
|
-
key: "assign",
|
|
449
|
-
value: /**
|
|
306
|
+
*/ display(val) {
|
|
307
|
+
this._contact.display = val;
|
|
308
|
+
return this;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
450
311
|
* Assigns the values in other to this object.
|
|
451
312
|
*
|
|
452
313
|
* @param other -
|
|
@@ -454,15 +315,12 @@ function _define_property$3(obj, key, value) {
|
|
|
454
315
|
*
|
|
455
316
|
* @returns
|
|
456
317
|
* This object.
|
|
457
|
-
*/
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
{
|
|
464
|
-
key: "copy",
|
|
465
|
-
value: /**
|
|
318
|
+
*/ assign(other) {
|
|
319
|
+
this._contact = Object.assign({}, this._contact, other);
|
|
320
|
+
this._contact = JSON.parse(JSON.stringify(this._contact));
|
|
321
|
+
return this;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
466
324
|
* Copies another object.
|
|
467
325
|
*
|
|
468
326
|
* @param other -
|
|
@@ -470,44 +328,28 @@ function _define_property$3(obj, key, value) {
|
|
|
470
328
|
*
|
|
471
329
|
* @returns
|
|
472
330
|
* This object.
|
|
473
|
-
*/
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
{
|
|
479
|
-
key: "build",
|
|
480
|
-
value: /**
|
|
331
|
+
*/ copy(other) {
|
|
332
|
+
this._contact = JSON.parse(JSON.stringify(other));
|
|
333
|
+
return this;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
481
336
|
* Returns a copy of the built object.
|
|
482
337
|
*
|
|
483
338
|
* @returns
|
|
484
339
|
* A copy of the built email contact.
|
|
485
|
-
*/
|
|
486
|
-
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
]);
|
|
490
|
-
return ZEmailContactBuilder;
|
|
491
|
-
}();
|
|
492
|
-
|
|
493
|
-
function _class_call_check$2(instance, Constructor) {
|
|
494
|
-
if (!(instance instanceof Constructor)) {
|
|
495
|
-
throw new TypeError("Cannot call a class as a function");
|
|
340
|
+
*/ build() {
|
|
341
|
+
return JSON.parse(JSON.stringify(this._contact));
|
|
496
342
|
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
343
|
+
/**
|
|
344
|
+
* Initializes a new instance of this object.
|
|
345
|
+
*/ constructor(){
|
|
346
|
+
_define_property$3(this, "_contact", void 0);
|
|
347
|
+
this._contact = {
|
|
348
|
+
address: ""
|
|
349
|
+
};
|
|
505
350
|
}
|
|
506
351
|
}
|
|
507
|
-
|
|
508
|
-
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
509
|
-
return Constructor;
|
|
510
|
-
}
|
|
352
|
+
|
|
511
353
|
function _define_property$2(obj, key, value) {
|
|
512
354
|
if (key in obj) {
|
|
513
355
|
Object.defineProperty(obj, key, {
|
|
@@ -523,18 +365,8 @@ function _define_property$2(obj, key, value) {
|
|
|
523
365
|
}
|
|
524
366
|
/**
|
|
525
367
|
* Represents a builder for an email envelope.
|
|
526
|
-
*/
|
|
527
|
-
|
|
528
|
-
_class_call_check$2(this, ZEmailEnvelopeBuilder);
|
|
529
|
-
_define_property$2(this, "_envelope", void 0);
|
|
530
|
-
this._envelope = {
|
|
531
|
-
from: ""
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
_create_class$2(ZEmailEnvelopeBuilder, [
|
|
535
|
-
{
|
|
536
|
-
key: "from",
|
|
537
|
-
value: /**
|
|
368
|
+
*/ class ZEmailEnvelopeBuilder {
|
|
369
|
+
/**
|
|
538
370
|
* Sets the from field.
|
|
539
371
|
*
|
|
540
372
|
* @param val -
|
|
@@ -542,14 +374,11 @@ function _define_property$2(obj, key, value) {
|
|
|
542
374
|
*
|
|
543
375
|
* @returns
|
|
544
376
|
* This object.
|
|
545
|
-
*/
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
{
|
|
551
|
-
key: "to",
|
|
552
|
-
value: /**
|
|
377
|
+
*/ from(val) {
|
|
378
|
+
this._envelope.from = val;
|
|
379
|
+
return this;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
553
382
|
* Adds a value to the 'to' field.
|
|
554
383
|
*
|
|
555
384
|
* @param val -
|
|
@@ -557,15 +386,12 @@ function _define_property$2(obj, key, value) {
|
|
|
557
386
|
*
|
|
558
387
|
* @returns
|
|
559
388
|
* This object.
|
|
560
|
-
*/
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
{
|
|
567
|
-
key: "tos",
|
|
568
|
-
value: /**
|
|
389
|
+
*/ to(val) {
|
|
390
|
+
this._envelope.to = this._envelope.to || [];
|
|
391
|
+
this._envelope.to.push(val);
|
|
392
|
+
return this;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
569
395
|
* Sets the to field.
|
|
570
396
|
*
|
|
571
397
|
* @param val -
|
|
@@ -573,14 +399,11 @@ function _define_property$2(obj, key, value) {
|
|
|
573
399
|
*
|
|
574
400
|
* @returns
|
|
575
401
|
* This object.
|
|
576
|
-
*/
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
{
|
|
582
|
-
key: "cc",
|
|
583
|
-
value: /**
|
|
402
|
+
*/ tos(val) {
|
|
403
|
+
this._envelope.to = val;
|
|
404
|
+
return this;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
584
407
|
* Adds a value to the cc field.
|
|
585
408
|
*
|
|
586
409
|
* @param val -
|
|
@@ -588,15 +411,12 @@ function _define_property$2(obj, key, value) {
|
|
|
588
411
|
*
|
|
589
412
|
* @returns
|
|
590
413
|
* This object.
|
|
591
|
-
*/
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
{
|
|
598
|
-
key: "ccs",
|
|
599
|
-
value: /**
|
|
414
|
+
*/ cc(val) {
|
|
415
|
+
this._envelope.cc = this._envelope.cc || [];
|
|
416
|
+
this._envelope.cc.push(val);
|
|
417
|
+
return this;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
600
420
|
* Sets the cc field.
|
|
601
421
|
*
|
|
602
422
|
* @param val -
|
|
@@ -604,14 +424,11 @@ function _define_property$2(obj, key, value) {
|
|
|
604
424
|
*
|
|
605
425
|
* @returns
|
|
606
426
|
* This object.
|
|
607
|
-
*/
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
{
|
|
613
|
-
key: "bcc",
|
|
614
|
-
value: /**
|
|
427
|
+
*/ ccs(val) {
|
|
428
|
+
this._envelope.cc = val;
|
|
429
|
+
return this;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
615
432
|
* Adds a value to the bcc field.
|
|
616
433
|
*
|
|
617
434
|
* @param val -
|
|
@@ -619,15 +436,12 @@ function _define_property$2(obj, key, value) {
|
|
|
619
436
|
*
|
|
620
437
|
* @returns
|
|
621
438
|
* This object.
|
|
622
|
-
*/
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
{
|
|
629
|
-
key: "bccs",
|
|
630
|
-
value: /**
|
|
439
|
+
*/ bcc(val) {
|
|
440
|
+
this._envelope.bcc = this._envelope.bcc || [];
|
|
441
|
+
this._envelope.bcc.push(val);
|
|
442
|
+
return this;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
631
445
|
* Sets the bcc field.
|
|
632
446
|
*
|
|
633
447
|
* @param val -
|
|
@@ -635,14 +449,11 @@ function _define_property$2(obj, key, value) {
|
|
|
635
449
|
*
|
|
636
450
|
* @returns
|
|
637
451
|
* This object.
|
|
638
|
-
*/
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
{
|
|
644
|
-
key: "assign",
|
|
645
|
-
value: /**
|
|
452
|
+
*/ bccs(val) {
|
|
453
|
+
this._envelope.bcc = val;
|
|
454
|
+
return this;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
646
457
|
* Assigns another partial email envelope to this object.
|
|
647
458
|
*
|
|
648
459
|
* @param other -
|
|
@@ -650,15 +461,12 @@ function _define_property$2(obj, key, value) {
|
|
|
650
461
|
*
|
|
651
462
|
* @returns
|
|
652
463
|
* This object.
|
|
653
|
-
*/
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
{
|
|
660
|
-
key: "copy",
|
|
661
|
-
value: /**
|
|
464
|
+
*/ assign(other) {
|
|
465
|
+
this._envelope = Object.assign({}, this._envelope, other);
|
|
466
|
+
this._envelope = JSON.parse(JSON.stringify(this._envelope));
|
|
467
|
+
return this;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
662
470
|
* Copies another email envelope to this object.
|
|
663
471
|
*
|
|
664
472
|
* @param other -
|
|
@@ -666,44 +474,28 @@ function _define_property$2(obj, key, value) {
|
|
|
666
474
|
*
|
|
667
475
|
* @returns
|
|
668
476
|
* This object.
|
|
669
|
-
*/
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
{
|
|
675
|
-
key: "build",
|
|
676
|
-
value: /**
|
|
477
|
+
*/ copy(other) {
|
|
478
|
+
this._envelope = JSON.parse(JSON.stringify(other));
|
|
479
|
+
return this;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
677
482
|
* Returns a copy of the built envelope.
|
|
678
483
|
*
|
|
679
484
|
* @returns
|
|
680
485
|
* A copy of the currently built up envelope object.
|
|
681
|
-
*/
|
|
682
|
-
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
]);
|
|
686
|
-
return ZEmailEnvelopeBuilder;
|
|
687
|
-
}();
|
|
688
|
-
|
|
689
|
-
function _class_call_check$1(instance, Constructor) {
|
|
690
|
-
if (!(instance instanceof Constructor)) {
|
|
691
|
-
throw new TypeError("Cannot call a class as a function");
|
|
486
|
+
*/ build() {
|
|
487
|
+
return JSON.parse(JSON.stringify(this._envelope));
|
|
692
488
|
}
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
489
|
+
/**
|
|
490
|
+
* Initializes a new instance of this object.
|
|
491
|
+
*/ constructor(){
|
|
492
|
+
_define_property$2(this, "_envelope", void 0);
|
|
493
|
+
this._envelope = {
|
|
494
|
+
from: ""
|
|
495
|
+
};
|
|
701
496
|
}
|
|
702
497
|
}
|
|
703
|
-
|
|
704
|
-
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
705
|
-
return Constructor;
|
|
706
|
-
}
|
|
498
|
+
|
|
707
499
|
function _define_property$1(obj, key, value) {
|
|
708
500
|
if (key in obj) {
|
|
709
501
|
Object.defineProperty(obj, key, {
|
|
@@ -719,18 +511,8 @@ function _define_property$1(obj, key, value) {
|
|
|
719
511
|
}
|
|
720
512
|
/**
|
|
721
513
|
* Represents a builder for an email.
|
|
722
|
-
*/
|
|
723
|
-
|
|
724
|
-
_class_call_check$1(this, ZEmailBuilder);
|
|
725
|
-
_define_property$1(this, "_email", void 0);
|
|
726
|
-
this._email = {
|
|
727
|
-
envelope: new ZEmailEnvelopeBuilder().build()
|
|
728
|
-
};
|
|
729
|
-
}
|
|
730
|
-
_create_class$1(ZEmailBuilder, [
|
|
731
|
-
{
|
|
732
|
-
key: "envelope",
|
|
733
|
-
value: /**
|
|
514
|
+
*/ class ZEmailBuilder {
|
|
515
|
+
/**
|
|
734
516
|
* Sets the envelope of where the email is going.
|
|
735
517
|
*
|
|
736
518
|
* @param val -
|
|
@@ -738,14 +520,11 @@ function _define_property$1(obj, key, value) {
|
|
|
738
520
|
*
|
|
739
521
|
* @returns
|
|
740
522
|
* This object.
|
|
741
|
-
*/
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
{
|
|
747
|
-
key: "subject",
|
|
748
|
-
value: /**
|
|
523
|
+
*/ envelope(val) {
|
|
524
|
+
this._email.envelope = val;
|
|
525
|
+
return this;
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
749
528
|
* Sets the subject line of the email.
|
|
750
529
|
*
|
|
751
530
|
* @param val -
|
|
@@ -753,14 +532,11 @@ function _define_property$1(obj, key, value) {
|
|
|
753
532
|
*
|
|
754
533
|
* @returns
|
|
755
534
|
* This object.
|
|
756
|
-
*/
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
{
|
|
762
|
-
key: "message",
|
|
763
|
-
value: /**
|
|
535
|
+
*/ subject(val) {
|
|
536
|
+
this._email.subject = val;
|
|
537
|
+
return this;
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
764
540
|
* Sets the message of the email.
|
|
765
541
|
*
|
|
766
542
|
* The message can be raw text or html.
|
|
@@ -770,14 +546,11 @@ function _define_property$1(obj, key, value) {
|
|
|
770
546
|
*
|
|
771
547
|
* @returns
|
|
772
548
|
* This object.
|
|
773
|
-
*/
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
{
|
|
779
|
-
key: "assign",
|
|
780
|
-
value: /**
|
|
549
|
+
*/ message(val) {
|
|
550
|
+
this._email.message = val;
|
|
551
|
+
return this;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
781
554
|
* Assigns the other object to the current email object.
|
|
782
555
|
*
|
|
783
556
|
* @param other -
|
|
@@ -785,15 +558,12 @@ function _define_property$1(obj, key, value) {
|
|
|
785
558
|
*
|
|
786
559
|
* @returns
|
|
787
560
|
* This object.
|
|
788
|
-
*/
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
{
|
|
795
|
-
key: "copy",
|
|
796
|
-
value: /**
|
|
561
|
+
*/ assign(other) {
|
|
562
|
+
this._email = Object.assign(this._email, other);
|
|
563
|
+
this._email = JSON.parse(JSON.stringify(this._email));
|
|
564
|
+
return this;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
797
567
|
* Copies another email into the builder.
|
|
798
568
|
*
|
|
799
569
|
* @param other -
|
|
@@ -801,47 +571,31 @@ function _define_property$1(obj, key, value) {
|
|
|
801
571
|
*
|
|
802
572
|
* @returns
|
|
803
573
|
* This object.
|
|
804
|
-
*/
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
{
|
|
810
|
-
key: "build",
|
|
811
|
-
value: /**
|
|
574
|
+
*/ copy(other) {
|
|
575
|
+
this._email = JSON.parse(JSON.stringify(other));
|
|
576
|
+
return this;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
812
579
|
* Returns a copy of the built object.
|
|
813
580
|
*
|
|
814
581
|
* @returns
|
|
815
582
|
* A copy of the built object.
|
|
816
|
-
*/
|
|
817
|
-
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
]);
|
|
821
|
-
return ZEmailBuilder;
|
|
822
|
-
}();
|
|
823
|
-
|
|
824
|
-
/**
|
|
825
|
-
* Represents an abstract server connection.
|
|
826
|
-
*/ function _class_call_check(instance, Constructor) {
|
|
827
|
-
if (!(instance instanceof Constructor)) {
|
|
828
|
-
throw new TypeError("Cannot call a class as a function");
|
|
583
|
+
*/ build() {
|
|
584
|
+
return JSON.parse(JSON.stringify(this._email));
|
|
829
585
|
}
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
586
|
+
/**
|
|
587
|
+
* Initializes a new instance of this object.
|
|
588
|
+
*/ constructor(){
|
|
589
|
+
_define_property$1(this, "_email", void 0);
|
|
590
|
+
this._email = {
|
|
591
|
+
envelope: new ZEmailEnvelopeBuilder().build()
|
|
592
|
+
};
|
|
838
593
|
}
|
|
839
594
|
}
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
function _define_property(obj, key, value) {
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Represents an abstract server connection.
|
|
598
|
+
*/ function _define_property(obj, key, value) {
|
|
845
599
|
if (key in obj) {
|
|
846
600
|
Object.defineProperty(obj, key, {
|
|
847
601
|
value: value,
|
|
@@ -856,18 +610,8 @@ function _define_property(obj, key, value) {
|
|
|
856
610
|
}
|
|
857
611
|
/**
|
|
858
612
|
* Represents a builder for a server object.
|
|
859
|
-
*/
|
|
860
|
-
|
|
861
|
-
_class_call_check(this, ZServerBuilder);
|
|
862
|
-
_define_property(this, "_server", void 0);
|
|
863
|
-
this._server = {
|
|
864
|
-
address: ""
|
|
865
|
-
};
|
|
866
|
-
}
|
|
867
|
-
_create_class(ZServerBuilder, [
|
|
868
|
-
{
|
|
869
|
-
key: "address",
|
|
870
|
-
value: /**
|
|
613
|
+
*/ class ZServerBuilder {
|
|
614
|
+
/**
|
|
871
615
|
* The server ip address or hostname.
|
|
872
616
|
*
|
|
873
617
|
* @param val -
|
|
@@ -875,14 +619,11 @@ function _define_property(obj, key, value) {
|
|
|
875
619
|
*
|
|
876
620
|
* @returns
|
|
877
621
|
* This object.
|
|
878
|
-
*/
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
{
|
|
884
|
-
key: "port",
|
|
885
|
-
value: /**
|
|
622
|
+
*/ address(val) {
|
|
623
|
+
this._server.address = val;
|
|
624
|
+
return this;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
886
627
|
* Sets the optional port to connect on.
|
|
887
628
|
*
|
|
888
629
|
* @param val -
|
|
@@ -890,14 +631,11 @@ function _define_property(obj, key, value) {
|
|
|
890
631
|
*
|
|
891
632
|
* @returns
|
|
892
633
|
* This object.
|
|
893
|
-
*/
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
{
|
|
899
|
-
key: "username",
|
|
900
|
-
value: /**
|
|
634
|
+
*/ port(val) {
|
|
635
|
+
this._server.port = val;
|
|
636
|
+
return this;
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
901
639
|
* Sets the optional username to connect on.
|
|
902
640
|
*
|
|
903
641
|
* @param val -
|
|
@@ -905,14 +643,11 @@ function _define_property(obj, key, value) {
|
|
|
905
643
|
*
|
|
906
644
|
* @returns
|
|
907
645
|
* This object.
|
|
908
|
-
*/
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
{
|
|
914
|
-
key: "password",
|
|
915
|
-
value: /**
|
|
646
|
+
*/ username(val) {
|
|
647
|
+
this._server.username = val;
|
|
648
|
+
return this;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
916
651
|
* Sets the password to connect on.
|
|
917
652
|
*
|
|
918
653
|
* @param val -
|
|
@@ -920,14 +655,11 @@ function _define_property(obj, key, value) {
|
|
|
920
655
|
*
|
|
921
656
|
* @returns
|
|
922
657
|
* This object.
|
|
923
|
-
*/
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
{
|
|
929
|
-
key: "assign",
|
|
930
|
-
value: /**
|
|
658
|
+
*/ password(val) {
|
|
659
|
+
this._server.password = val;
|
|
660
|
+
return this;
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
931
663
|
* Assigns all truthy properties in other to this object.
|
|
932
664
|
*
|
|
933
665
|
* @param other -
|
|
@@ -935,14 +667,11 @@ function _define_property(obj, key, value) {
|
|
|
935
667
|
*
|
|
936
668
|
* @returns
|
|
937
669
|
* This object.
|
|
938
|
-
*/
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
{
|
|
944
|
-
key: "copy",
|
|
945
|
-
value: /**
|
|
670
|
+
*/ assign(other) {
|
|
671
|
+
this._server = Object.assign({}, this._server, other);
|
|
672
|
+
return this;
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
946
675
|
* Copies all properties in other to this object.
|
|
947
676
|
*
|
|
948
677
|
* @param other -
|
|
@@ -950,25 +679,27 @@ function _define_property(obj, key, value) {
|
|
|
950
679
|
*
|
|
951
680
|
* @returns
|
|
952
681
|
* This object.
|
|
953
|
-
*/
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
{
|
|
959
|
-
key: "build",
|
|
960
|
-
value: /**
|
|
682
|
+
*/ copy(other) {
|
|
683
|
+
this._server = JSON.parse(JSON.stringify(other));
|
|
684
|
+
return this;
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
961
687
|
* Returns a copy of the built object.
|
|
962
688
|
*
|
|
963
689
|
* @returns
|
|
964
690
|
* A copy of the built object.
|
|
965
|
-
*/
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
691
|
+
*/ build() {
|
|
692
|
+
return JSON.parse(JSON.stringify(this._server));
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Initializes a new instance of this object.
|
|
696
|
+
*/ constructor(){
|
|
697
|
+
_define_property(this, "_server", void 0);
|
|
698
|
+
this._server = {
|
|
699
|
+
address: ""
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
}
|
|
972
703
|
|
|
973
704
|
export { ZCookieBuilder, ZEmailBuilder, ZEmailContactAddressBuilder, ZEmailContactBuilder, ZEmailEnvelopeBuilder, ZServerBuilder };
|
|
974
705
|
//# sourceMappingURL=index.js.map
|