ng2-rest 11.0.40 → 12.0.3
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/README.md +1 -1
- package/app.js +2 -47
- package/app.js.map +1 -1
- package/browser/README.md +24 -0
- package/browser/esm2020/lib/cookie.mjs +27 -0
- package/browser/esm2020/lib/helpers.mjs +22 -0
- package/browser/esm2020/lib/index.mjs +10 -0
- package/browser/esm2020/lib/mapping.mjs +271 -0
- package/browser/esm2020/lib/models.mjs +135 -0
- package/browser/esm2020/lib/params.mjs +305 -0
- package/browser/esm2020/lib/request-cache.mjs +95 -0
- package/browser/esm2020/lib/resource.service.mjs +255 -0
- package/browser/esm2020/lib/rest-headers.mjs +129 -0
- package/browser/esm2020/lib/rest-request.mjs +311 -0
- package/browser/esm2020/lib/rest.class.mjs +114 -0
- package/browser/esm2020/lib/simple-resource.mjs +117 -0
- package/browser/esm2020/ng2-rest.mjs +5 -0
- package/browser/esm2020/public-api.mjs +2 -0
- package/browser/fesm2015/ng2-rest.mjs +1755 -0
- package/browser/fesm2015/ng2-rest.mjs.map +1 -0
- package/browser/fesm2020/ng2-rest.mjs +1752 -0
- package/browser/fesm2020/ng2-rest.mjs.map +1 -0
- package/browser/{cookie.d.ts → lib/cookie.d.ts} +0 -0
- package/browser/{helpers.d.ts → lib/helpers.d.ts} +0 -0
- package/browser/{index.d.ts → lib/index.d.ts} +0 -0
- package/browser/{mapping.d.ts → lib/mapping.d.ts} +0 -0
- package/{client → browser/lib}/models.d.ts +2 -3
- package/browser/{params.d.ts → lib/params.d.ts} +0 -0
- package/browser/{request-cache.d.ts → lib/request-cache.d.ts} +0 -0
- package/browser/{resource.service.d.ts → lib/resource.service.d.ts} +1 -5
- package/browser/{rest-headers.d.ts → lib/rest-headers.d.ts} +0 -0
- package/{rest-request.d.ts → browser/lib/rest-request.d.ts} +0 -3
- package/{rest.class.d.ts → browser/lib/rest.class.d.ts} +0 -1
- package/browser/{simple-resource.d.ts → lib/simple-resource.d.ts} +1 -5
- package/browser/ng2-rest.d.ts +5 -0
- package/browser/package.json +31 -0
- package/browser/public-api.d.ts +1 -0
- package/client/README.md +24 -0
- package/client/esm2020/lib/cookie.mjs +27 -0
- package/client/esm2020/lib/helpers.mjs +22 -0
- package/client/esm2020/lib/index.mjs +10 -0
- package/client/esm2020/lib/mapping.mjs +271 -0
- package/client/esm2020/lib/models.mjs +135 -0
- package/client/esm2020/lib/params.mjs +305 -0
- package/client/esm2020/lib/request-cache.mjs +95 -0
- package/client/esm2020/lib/resource.service.mjs +255 -0
- package/client/esm2020/lib/rest-headers.mjs +129 -0
- package/client/esm2020/lib/rest-request.mjs +311 -0
- package/client/esm2020/lib/rest.class.mjs +114 -0
- package/client/esm2020/lib/simple-resource.mjs +117 -0
- package/client/esm2020/ng2-rest.mjs +5 -0
- package/client/esm2020/public-api.mjs +2 -0
- package/client/fesm2015/ng2-rest.mjs +1755 -0
- package/client/fesm2015/ng2-rest.mjs.map +1 -0
- package/client/fesm2020/ng2-rest.mjs +1752 -0
- package/client/fesm2020/ng2-rest.mjs.map +1 -0
- package/client/{cookie.d.ts → lib/cookie.d.ts} +0 -0
- package/client/{helpers.d.ts → lib/helpers.d.ts} +0 -0
- package/client/{index.d.ts → lib/index.d.ts} +0 -0
- package/client/{mapping.d.ts → lib/mapping.d.ts} +0 -0
- package/{browser → client/lib}/models.d.ts +2 -3
- package/client/{params.d.ts → lib/params.d.ts} +0 -0
- package/client/{request-cache.d.ts → lib/request-cache.d.ts} +0 -0
- package/client/{resource.service.d.ts → lib/resource.service.d.ts} +1 -5
- package/client/{rest-headers.d.ts → lib/rest-headers.d.ts} +0 -0
- package/client/{rest-request.d.ts → lib/rest-request.d.ts} +0 -3
- package/client/{rest.class.d.ts → lib/rest.class.d.ts} +0 -1
- package/{simple-resource.d.ts → client/lib/simple-resource.d.ts} +1 -5
- package/client/ng2-rest.d.ts +5 -0
- package/client/package.json +25 -31
- package/client/public-api.d.ts +1 -0
- package/index.d.ts +1 -9
- package/index.js +3 -13
- package/index.js.map +1 -1
- package/{cookie.d.ts → lib/cookie.d.ts} +0 -0
- package/{cookie.js → lib/cookie.js} +2 -1
- package/lib/cookie.js.map +1 -0
- package/{helpers.d.ts → lib/helpers.d.ts} +0 -0
- package/{helpers.js → lib/helpers.js} +3 -2
- package/lib/helpers.js.map +1 -0
- package/{browser/index.js → lib/index.d.ts} +0 -1
- package/lib/index.js +17 -0
- package/lib/index.js.map +1 -0
- package/{mapping.d.ts → lib/mapping.d.ts} +0 -0
- package/{mapping.js → lib/mapping.js} +5 -4
- package/lib/mapping.js.map +1 -0
- package/{models.d.ts → lib/models.d.ts} +2 -3
- package/{models.js → lib/models.js} +6 -6
- package/lib/models.js.map +1 -0
- package/{params.d.ts → lib/params.d.ts} +0 -0
- package/{params.js → lib/params.js} +17 -16
- package/lib/params.js.map +1 -0
- package/{request-cache.d.ts → lib/request-cache.d.ts} +0 -0
- package/{request-cache.js → lib/request-cache.js} +2 -1
- package/lib/request-cache.js.map +1 -0
- package/{resource.service.d.ts → lib/resource.service.d.ts} +1 -5
- package/{resource.service.js → lib/resource.service.js} +33 -26
- package/lib/resource.service.js.map +1 -0
- package/{rest-headers.d.ts → lib/rest-headers.d.ts} +0 -0
- package/{rest-headers.js → lib/rest-headers.js} +2 -1
- package/lib/rest-headers.js.map +1 -0
- package/{browser → lib}/rest-request.d.ts +0 -3
- package/{rest-request.js → lib/rest-request.js} +19 -19
- package/lib/rest-request.js.map +1 -0
- package/{browser → lib}/rest.class.d.ts +0 -1
- package/{rest.class.js → lib/rest.class.js} +4 -5
- package/lib/rest.class.js.map +1 -0
- package/{client → lib}/simple-resource.d.ts +1 -5
- package/{simple-resource.js → lib/simple-resource.js} +11 -14
- package/lib/simple-resource.js.map +1 -0
- package/package.json +10 -10
- package/package.json_devDependencies.json +24 -24
- package/package.json_tnp.json +2 -1
- package/package.json_tnp.json5 +39 -0
- package/tmp-environment.json +85 -121
- package/browser/app.d.ts +0 -0
- package/browser/app.js +0 -31
- package/browser/app.js.map +0 -1
- package/browser/cookie.js +0 -27
- package/browser/cookie.js.map +0 -1
- package/browser/es5/app.js +0 -32
- package/browser/es5/cookie.js +0 -50
- package/browser/es5/helpers.js +0 -58
- package/browser/es5/index.js +0 -107
- package/browser/es5/mapping.js +0 -287
- package/browser/es5/models.js +0 -249
- package/browser/es5/params.js +0 -310
- package/browser/es5/request-cache.js +0 -133
- package/browser/es5/resource.service.js +0 -288
- package/browser/es5/rest-headers.js +0 -200
- package/browser/es5/rest-request.js +0 -423
- package/browser/es5/rest.class.js +0 -191
- package/browser/es5/simple-resource.js +0 -175
- package/browser/helpers.js +0 -22
- package/browser/helpers.js.map +0 -1
- package/browser/index.js.map +0 -1
- package/browser/mapping.js +0 -271
- package/browser/mapping.js.map +0 -1
- package/browser/models.js +0 -136
- package/browser/models.js.map +0 -1
- package/browser/params.js +0 -305
- package/browser/params.js.map +0 -1
- package/browser/request-cache.js +0 -95
- package/browser/request-cache.js.map +0 -1
- package/browser/resource.service.js +0 -249
- package/browser/resource.service.js.map +0 -1
- package/browser/rest-headers.js +0 -129
- package/browser/rest-headers.js.map +0 -1
- package/browser/rest-request.js +0 -316
- package/browser/rest-request.js.map +0 -1
- package/browser/rest.class.js +0 -116
- package/browser/rest.class.js.map +0 -1
- package/browser/simple-resource.js +0 -121
- package/browser/simple-resource.js.map +0 -1
- package/client/app.d.ts +0 -0
- package/client/app.js +0 -31
- package/client/app.js.map +0 -1
- package/client/cookie.js +0 -27
- package/client/cookie.js.map +0 -1
- package/client/es5/app.js +0 -32
- package/client/es5/cookie.js +0 -50
- package/client/es5/helpers.js +0 -58
- package/client/es5/index.js +0 -107
- package/client/es5/mapping.js +0 -287
- package/client/es5/models.js +0 -249
- package/client/es5/params.js +0 -310
- package/client/es5/request-cache.js +0 -133
- package/client/es5/resource.service.js +0 -288
- package/client/es5/rest-headers.js +0 -200
- package/client/es5/rest-request.js +0 -423
- package/client/es5/rest.class.js +0 -191
- package/client/es5/simple-resource.js +0 -175
- package/client/helpers.js +0 -22
- package/client/helpers.js.map +0 -1
- package/client/index.js +0 -10
- package/client/index.js.map +0 -1
- package/client/mapping.js +0 -271
- package/client/mapping.js.map +0 -1
- package/client/models.js +0 -136
- package/client/models.js.map +0 -1
- package/client/params.js +0 -305
- package/client/params.js.map +0 -1
- package/client/request-cache.js +0 -95
- package/client/request-cache.js.map +0 -1
- package/client/resource.service.js +0 -249
- package/client/resource.service.js.map +0 -1
- package/client/rest-headers.js +0 -129
- package/client/rest-headers.js.map +0 -1
- package/client/rest-request.js +0 -316
- package/client/rest-request.js.map +0 -1
- package/client/rest.class.js +0 -116
- package/client/rest.class.js.map +0 -1
- package/client/simple-resource.js +0 -121
- package/client/simple-resource.js.map +0 -1
- package/cookie.js.map +0 -1
- package/helpers.js.map +0 -1
- package/mapping.js.map +0 -1
- package/models.js.map +0 -1
- package/params.js.map +0 -1
- package/request-cache.js.map +0 -1
- package/resource.service.js.map +0 -1
- package/rest-headers.js.map +0 -1
- package/rest-request.js.map +0 -1
- package/rest.class.js.map +0 -1
- package/simple-resource.js.map +0 -1
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs/Observable';
|
|
2
|
-
import 'rxjs/add/operator/map';
|
|
3
|
-
import 'rxjs/add/operator/takeUntil';
|
|
4
|
-
import 'rxjs/add/operator/take';
|
|
5
|
-
import 'rxjs/add/operator/toPromise';
|
|
6
|
-
import { Resource } from './resource.service';
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @export
|
|
10
|
-
* @abstract
|
|
11
|
-
* @class SimpleResource
|
|
12
|
-
* @extends {Resource<T, A, TA>}
|
|
13
|
-
* @template E Endpoint type
|
|
14
|
-
* @template A Single modle type
|
|
15
|
-
* @template TA Array Model Type
|
|
16
|
-
* @template RP rest url parameters type
|
|
17
|
-
* @template QP query parameter type
|
|
18
|
-
*/
|
|
19
|
-
class ExtendedResource {
|
|
20
|
-
// add(endpoint: E, model: string, group?: string, name?: string, description?: string) { }
|
|
21
|
-
constructor(endpoint, path_model) {
|
|
22
|
-
this.endpoint = endpoint;
|
|
23
|
-
this.path_model = path_model;
|
|
24
|
-
/**
|
|
25
|
-
* Get model by rest params
|
|
26
|
-
*/
|
|
27
|
-
this.model = (restParams) => {
|
|
28
|
-
return {
|
|
29
|
-
get: (queryPrams) => {
|
|
30
|
-
return Observable.create((observer) => {
|
|
31
|
-
ExtendedResource.handlers.push(this.rest.model(restParams)
|
|
32
|
-
.get([queryPrams], ExtendedResource.doNotSerializeQueryParams)
|
|
33
|
-
.observable
|
|
34
|
-
.subscribe(data => observer.next(data.body.json), err => observer.error(err), () => observer.complete()));
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
patch: (item, queryParams) => {
|
|
38
|
-
return Observable.create((observer) => {
|
|
39
|
-
ExtendedResource.handlers.push(this.rest.model(restParams)
|
|
40
|
-
.put(item, [queryParams], ExtendedResource.doNotSerializeQueryParams)
|
|
41
|
-
.observable
|
|
42
|
-
.subscribe(data => observer.next(data.body.json), err => observer.error(err), () => observer.complete()));
|
|
43
|
-
});
|
|
44
|
-
},
|
|
45
|
-
head: (queryPrams) => {
|
|
46
|
-
return Observable.create((observer) => {
|
|
47
|
-
ExtendedResource.handlers.push(this.rest.model(restParams)
|
|
48
|
-
.head([queryPrams], ExtendedResource.doNotSerializeQueryParams)
|
|
49
|
-
.observable
|
|
50
|
-
.subscribe(data => observer.next(data.body.json), err => observer.error(err), () => observer.complete()));
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
query: (queryPrams) => {
|
|
54
|
-
return Observable.create((observer) => {
|
|
55
|
-
ExtendedResource.handlers.push(this.rest.model(restParams).
|
|
56
|
-
array
|
|
57
|
-
.get([queryPrams], ExtendedResource.doNotSerializeQueryParams)
|
|
58
|
-
.observable
|
|
59
|
-
.subscribe(data => observer.next(data.body.json), err => observer.error(err), () => observer.complete()));
|
|
60
|
-
});
|
|
61
|
-
},
|
|
62
|
-
post: (item, queryParams) => {
|
|
63
|
-
return Observable.create((observer) => {
|
|
64
|
-
ExtendedResource.handlers.push(this.rest.model(restParams)
|
|
65
|
-
.post(item, [queryParams], ExtendedResource.doNotSerializeQueryParams)
|
|
66
|
-
.observable
|
|
67
|
-
.subscribe(data => observer.next(data.body.json), err => observer.error(err), () => observer.complete()));
|
|
68
|
-
});
|
|
69
|
-
},
|
|
70
|
-
put: (item, queryParams) => {
|
|
71
|
-
return Observable.create((observer) => {
|
|
72
|
-
ExtendedResource.handlers.push(this.rest.model(restParams)
|
|
73
|
-
.put(item, [queryParams], ExtendedResource.doNotSerializeQueryParams)
|
|
74
|
-
.observable
|
|
75
|
-
.subscribe(data => observer.next(data.body.json), err => observer.error(err), () => observer.complete()));
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
delete: (queryPrams) => {
|
|
79
|
-
return Observable.create((observer) => {
|
|
80
|
-
ExtendedResource.handlers.push(this.rest.model(restParams)
|
|
81
|
-
.delete([queryPrams], ExtendedResource.doNotSerializeQueryParams)
|
|
82
|
-
.observable
|
|
83
|
-
.subscribe(data => observer.next(data.body.json), err => observer.error(err), () => observer.complete()));
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
this.rest = Resource.create(endpoint, path_model);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
ExtendedResource.doNotSerializeQueryParams = false;
|
|
92
|
-
ExtendedResource.handlers = [];
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @export
|
|
96
|
-
* @class SimpleResource
|
|
97
|
-
* @template A single model type
|
|
98
|
-
* @template TA array model type
|
|
99
|
-
* @template RP rest parameters type
|
|
100
|
-
* @template QP query parameters type
|
|
101
|
-
*/
|
|
102
|
-
export class SimpleResource {
|
|
103
|
-
constructor(endpoint, model) {
|
|
104
|
-
let rest = new ExtendedResource(endpoint, model);
|
|
105
|
-
this.model = rest.model;
|
|
106
|
-
}
|
|
107
|
-
static set doNotSerializeQueryParams(value) {
|
|
108
|
-
if (!SimpleResource._isSetQueryParamsSerialization) {
|
|
109
|
-
SimpleResource._isSetQueryParamsSerialization = true;
|
|
110
|
-
ExtendedResource.doNotSerializeQueryParams = value;
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
console.warn(`Query params serialization already set as
|
|
114
|
-
${ExtendedResource.doNotSerializeQueryParams},`);
|
|
115
|
-
}
|
|
116
|
-
static __destroy() {
|
|
117
|
-
ExtendedResource.handlers.forEach(h => h.unsubscribe());
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
SimpleResource._isSetQueryParamsSerialization = false;
|
|
121
|
-
//# sourceMappingURL=simple-resource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple-resource.js","sourceRoot":"","sources":["../../tmp-src-bundle/simple-resource.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C,OAAO,uBAAuB,CAAC;AAC/B,OAAO,6BAA6B,CAAC;AACrC,OAAO,wBAAwB,CAAC;AAChC,OAAO,6BAA6B,CAAC;AAKrC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAqB9C;;;;;;;;;;;GAWG;AACH,MAAM,gBAAgB;IA6GpB,2FAA2F;IAE3F,YAA2B,QAAoB,EAAU,UAAkB;QAAhD,aAAQ,GAAR,QAAQ,CAAY;QAAU,eAAU,GAAV,UAAU,CAAQ;QAzG3E;;UAEE;QACF,UAAK,GAAyB,CAAC,UAAe,EAAE,EAAE;YAEhD,OAAO;gBAEL,GAAG,EAAE,CAAC,UAAe,EAAE,EAAE;oBACvB,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,QAAqB,EAAE,EAAE;wBACjD,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;6BACvD,GAAG,CAAC,CAAC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C,GAAG,CAAC,EAC1B,GAAG,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAA;oBACjC,CAAC,CAAC,CAAA;gBACJ,CAAC;aAGF,CAAA;QACH,CAAC,CAAA;QAMC,IAAI,CAAC,IAAI,GAAQ,QAAQ,CAAC,MAAM,CAAa,QAAQ,EAAE,UAAU,CAAC,CAAC;IAErE,CAAC;;AAjHa,0CAAyB,GAAG,KAAK,CAAC;AAClC,yBAAQ,GAAmB,EAAE,CAAC;AAsH9C;;;;;;;;GAQG;AACH,MAAM,OAAO,cAAc;IAmBzB,YAAY,QAAgB,EAAE,KAAa;QACzC,IAAI,IAAI,GAAG,IAAI,gBAAgB,CAA0C,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC1F,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IAC1B,CAAC;IAjBM,MAAM,KAAK,yBAAyB,CAAC,KAAK;QAC/C,IAAI,CAAC,cAAc,CAAC,8BAA8B,EAAE;YAClD,cAAc,CAAC,8BAA8B,GAAG,IAAI,CAAC;YACrD,gBAAgB,CAAC,yBAAyB,GAAG,KAAK,CAAA;YAClD,OAAO;SACR;QACD,OAAO,CAAC,IAAI,CAAC;UACP,gBAAgB,CAAC,yBAAyB,GAAG,CAAC,CAAC;IACvD,CAAC;IAEM,MAAM,CAAC,SAAS;QACrB,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1D,CAAC;;AAbc,6CAA8B,GAAG,KAAK,CAAC"}
|
package/client/app.d.ts
DELETED
|
File without changes
|
package/client/app.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// import { _ } from 'tnp-core/browser';
|
|
2
|
-
// import { Helpers } from './helpers';
|
|
3
|
-
// import { Resource } from 'ng2-rest';
|
|
4
|
-
// @Morphi.Controller()
|
|
5
|
-
// class RestCtrl extends Morphi.Base.Controller<any> {
|
|
6
|
-
// @Morphi.Http.GET()
|
|
7
|
-
// ng(): Morphi.Response<any> {
|
|
8
|
-
// return async () => {
|
|
9
|
-
// return 'ng2-rest perfect!'
|
|
10
|
-
// }
|
|
11
|
-
// }
|
|
12
|
-
// }
|
|
13
|
-
// const start = async (port = 3000) => {
|
|
14
|
-
// const host = `http://localhost:${port}`;
|
|
15
|
-
// console.log(`HOST ng2-rest: ${host}`);
|
|
16
|
-
// const context = await Morphi.init({
|
|
17
|
-
// host,
|
|
18
|
-
// controllers: [RestCtrl],
|
|
19
|
-
// entities: [],
|
|
20
|
-
// });
|
|
21
|
-
// if (Morphi.IsBrowser) {
|
|
22
|
-
// const rest = Resource.create(host, '/test');
|
|
23
|
-
// console.log('hello');
|
|
24
|
-
// await rest.model().get();
|
|
25
|
-
// const c: RestCtrl = _.first(context.controllers);
|
|
26
|
-
// const data = (await c.ng().received).body.text;
|
|
27
|
-
// console.log('ng:', data)
|
|
28
|
-
// }
|
|
29
|
-
// }
|
|
30
|
-
// export default start;
|
|
31
|
-
//# sourceMappingURL=app.js.map
|
package/client/app.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../tmp-src-bundle/app.ts"],"names":[],"mappings":"AAEA,wCAAwC;AACxC,uCAAuC;AACvC,uCAAuC;AAGvC,uBAAuB;AACvB,uDAAuD;AAGvD,uBAAuB;AACvB,iCAAiC;AACjC,2BAA2B;AAC3B,mCAAmC;AACnC,QAAQ;AACR,MAAM;AACN,IAAI;AAKJ,yCAAyC;AAEzC,6CAA6C;AAC7C,2CAA2C;AAG3C,wCAAwC;AACxC,YAAY;AACZ,+BAA+B;AAC/B,oBAAoB;AAEpB,QAAQ;AAGR,4BAA4B;AAC5B,mDAAmD;AACnD,4BAA4B;AAC5B,gCAAgC;AAEhC,wDAAwD;AACxD,sDAAsD;AACtD,+BAA+B;AAE/B,MAAM;AACN,IAAI;AAEJ,wBAAwB"}
|
package/client/cookie.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export class Cookie {
|
|
2
|
-
constructor() {
|
|
3
|
-
}
|
|
4
|
-
static get Instance() {
|
|
5
|
-
if (!Cookie.__instance) {
|
|
6
|
-
Cookie.__instance = new Cookie();
|
|
7
|
-
}
|
|
8
|
-
return Cookie.__instance;
|
|
9
|
-
}
|
|
10
|
-
read(name) {
|
|
11
|
-
var result = new RegExp('(?:^|; )' + encodeURIComponent(name) + '=([^;]*)').exec(document.cookie);
|
|
12
|
-
return result ? result[1] : null;
|
|
13
|
-
}
|
|
14
|
-
write(name, value, days) {
|
|
15
|
-
if (!days) {
|
|
16
|
-
days = 365 * 20;
|
|
17
|
-
}
|
|
18
|
-
var date = new Date();
|
|
19
|
-
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
|
20
|
-
var expires = "; expires=" + date.toUTCString();
|
|
21
|
-
document.cookie = name + "=" + value + expires + "; path=/";
|
|
22
|
-
}
|
|
23
|
-
remove(name) {
|
|
24
|
-
this.write(name, "", -1);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=cookie.js.map
|
package/client/cookie.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cookie.js","sourceRoot":"","sources":["../../tmp-src-bundle/cookie.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,MAAM;IAUf;IACA,CAAC;IATM,MAAM,KAAK,QAAQ;QACtB,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YACpB,MAAM,CAAC,UAAU,GAAG,IAAI,MAAM,EAAE,CAAC;SACpC;QACD,OAAO,MAAM,CAAC,UAAiB,CAAC;IACpC,CAAC;IAMD,IAAI,CAAC,IAAY;QACb,IAAI,MAAM,GAAG,IAAI,MAAM,CAAC,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAClG,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,IAAY,EAAE,KAAa,EAAE,IAAa;QAC5C,IAAI,CAAC,IAAI,EAAE;YACP,IAAI,GAAG,GAAG,GAAG,EAAE,CAAC;SACnB;QAED,IAAI,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACtB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;QAE5D,IAAI,OAAO,GAAG,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAEhD,QAAQ,CAAC,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAC;IAChE,CAAC;IAED,MAAM,CAAC,IAAY;QACf,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7B,CAAC;CAEJ"}
|
package/client/es5/app.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// import { _ } from 'tnp-core/browser';
|
|
2
|
-
// import { Helpers } from './helpers';
|
|
3
|
-
// import { Resource } from 'ng2-rest';
|
|
4
|
-
// @Morphi.Controller()
|
|
5
|
-
// class RestCtrl extends Morphi.Base.Controller<any> {
|
|
6
|
-
// @Morphi.Http.GET()
|
|
7
|
-
// ng(): Morphi.Response<any> {
|
|
8
|
-
// return async () => {
|
|
9
|
-
// return 'ng2-rest perfect!'
|
|
10
|
-
// }
|
|
11
|
-
// }
|
|
12
|
-
// }
|
|
13
|
-
// const start = async (port = 3000) => {
|
|
14
|
-
// const host = `http://localhost:${port}`;
|
|
15
|
-
// console.log(`HOST ng2-rest: ${host}`);
|
|
16
|
-
// const context = await Morphi.init({
|
|
17
|
-
// host,
|
|
18
|
-
// controllers: [RestCtrl],
|
|
19
|
-
// entities: [],
|
|
20
|
-
// });
|
|
21
|
-
// if (Morphi.IsBrowser) {
|
|
22
|
-
// const rest = Resource.create(host, '/test');
|
|
23
|
-
// console.log('hello');
|
|
24
|
-
// await rest.model().get();
|
|
25
|
-
// const c: RestCtrl = _.first(context.controllers);
|
|
26
|
-
// const data = (await c.ng().received).body.text;
|
|
27
|
-
// console.log('ng:', data)
|
|
28
|
-
// }
|
|
29
|
-
// }
|
|
30
|
-
// export default start;
|
|
31
|
-
//# sourceMappingURL=app.js.map
|
|
32
|
-
"use strict";
|
package/client/es5/cookie.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
8
|
-
|
|
9
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
|
-
|
|
11
|
-
var Cookie = exports.Cookie = function () {
|
|
12
|
-
function Cookie() {
|
|
13
|
-
_classCallCheck(this, Cookie);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
_createClass(Cookie, [{
|
|
17
|
-
key: 'read',
|
|
18
|
-
value: function read(name) {
|
|
19
|
-
var result = new RegExp('(?:^|; )' + encodeURIComponent(name) + '=([^;]*)').exec(document.cookie);
|
|
20
|
-
return result ? result[1] : null;
|
|
21
|
-
}
|
|
22
|
-
}, {
|
|
23
|
-
key: 'write',
|
|
24
|
-
value: function write(name, value, days) {
|
|
25
|
-
if (!days) {
|
|
26
|
-
days = 365 * 20;
|
|
27
|
-
}
|
|
28
|
-
var date = new Date();
|
|
29
|
-
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
30
|
-
var expires = "; expires=" + date.toUTCString();
|
|
31
|
-
document.cookie = name + "=" + value + expires + "; path=/";
|
|
32
|
-
}
|
|
33
|
-
}, {
|
|
34
|
-
key: 'remove',
|
|
35
|
-
value: function remove(name) {
|
|
36
|
-
this.write(name, "", -1);
|
|
37
|
-
}
|
|
38
|
-
}], [{
|
|
39
|
-
key: 'Instance',
|
|
40
|
-
get: function get() {
|
|
41
|
-
if (!Cookie.__instance) {
|
|
42
|
-
Cookie.__instance = new Cookie();
|
|
43
|
-
}
|
|
44
|
-
return Cookie.__instance;
|
|
45
|
-
}
|
|
46
|
-
}]);
|
|
47
|
-
|
|
48
|
-
return Cookie;
|
|
49
|
-
}();
|
|
50
|
-
//# sourceMappingURL=cookie.js.map
|
package/client/es5/helpers.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Helpers = undefined;
|
|
7
|
-
|
|
8
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
9
|
-
|
|
10
|
-
var _browser = require('tnp-core/browser');
|
|
11
|
-
|
|
12
|
-
var _mapping = require('./mapping');
|
|
13
|
-
|
|
14
|
-
var _browser2 = require('json10/browser');
|
|
15
|
-
|
|
16
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
-
|
|
18
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
19
|
-
|
|
20
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
21
|
-
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
var Helpers = exports.Helpers = function (_CoreHelpers) {
|
|
24
|
-
_inherits(Helpers, _CoreHelpers);
|
|
25
|
-
|
|
26
|
-
function Helpers() {
|
|
27
|
-
_classCallCheck(this, Helpers);
|
|
28
|
-
|
|
29
|
-
return _possibleConstructorReturn(this, (Helpers.__proto__ || Object.getPrototypeOf(Helpers)).apply(this, arguments));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
_createClass(Helpers, null, [{
|
|
33
|
-
key: 'checkValidUrl',
|
|
34
|
-
value: function checkValidUrl(url) {
|
|
35
|
-
var regex = /(http|https):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/;
|
|
36
|
-
return regex.test(url);
|
|
37
|
-
}
|
|
38
|
-
}, {
|
|
39
|
-
key: 'Mapping',
|
|
40
|
-
get: function get() {
|
|
41
|
-
return {
|
|
42
|
-
encode: function encode(json, mapping) {
|
|
43
|
-
return _mapping.Mapping.encode(json, mapping);
|
|
44
|
-
},
|
|
45
|
-
decode: function decode(json) {
|
|
46
|
-
var autodetect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
47
|
-
|
|
48
|
-
return _mapping.Mapping.decode(json, autodetect);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}]);
|
|
53
|
-
|
|
54
|
-
return Helpers;
|
|
55
|
-
}(_browser.CoreHelpers);
|
|
56
|
-
|
|
57
|
-
Helpers.JSON = _browser2.JSON10;
|
|
58
|
-
//# sourceMappingURL=helpers.js.map
|
package/client/es5/index.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _resource = require('./resource.service');
|
|
8
|
-
|
|
9
|
-
Object.keys(_resource).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function get() {
|
|
14
|
-
return _resource[key];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
var _models = require('./models');
|
|
20
|
-
|
|
21
|
-
Object.keys(_models).forEach(function (key) {
|
|
22
|
-
if (key === "default" || key === "__esModule") return;
|
|
23
|
-
Object.defineProperty(exports, key, {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function get() {
|
|
26
|
-
return _models[key];
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
var _mapping = require('./mapping');
|
|
32
|
-
|
|
33
|
-
Object.keys(_mapping).forEach(function (key) {
|
|
34
|
-
if (key === "default" || key === "__esModule") return;
|
|
35
|
-
Object.defineProperty(exports, key, {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function get() {
|
|
38
|
-
return _mapping[key];
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
var _rest = require('./rest.class');
|
|
44
|
-
|
|
45
|
-
Object.keys(_rest).forEach(function (key) {
|
|
46
|
-
if (key === "default" || key === "__esModule") return;
|
|
47
|
-
Object.defineProperty(exports, key, {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function get() {
|
|
50
|
-
return _rest[key];
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
var _restHeaders = require('./rest-headers');
|
|
56
|
-
|
|
57
|
-
Object.keys(_restHeaders).forEach(function (key) {
|
|
58
|
-
if (key === "default" || key === "__esModule") return;
|
|
59
|
-
Object.defineProperty(exports, key, {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function get() {
|
|
62
|
-
return _restHeaders[key];
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
var _helpers = require('./helpers');
|
|
68
|
-
|
|
69
|
-
Object.keys(_helpers).forEach(function (key) {
|
|
70
|
-
if (key === "default" || key === "__esModule") return;
|
|
71
|
-
Object.defineProperty(exports, key, {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
get: function get() {
|
|
74
|
-
return _helpers[key];
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
var _requestCache = require('./request-cache');
|
|
80
|
-
|
|
81
|
-
Object.keys(_requestCache).forEach(function (key) {
|
|
82
|
-
if (key === "default" || key === "__esModule") return;
|
|
83
|
-
Object.defineProperty(exports, key, {
|
|
84
|
-
enumerable: true,
|
|
85
|
-
get: function get() {
|
|
86
|
-
return _requestCache[key];
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
var _simpleResource = require('./simple-resource');
|
|
92
|
-
|
|
93
|
-
Object.defineProperty(exports, 'SimpleResource', {
|
|
94
|
-
enumerable: true,
|
|
95
|
-
get: function get() {
|
|
96
|
-
return _simpleResource.SimpleResource;
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
var _params = require('./params');
|
|
101
|
-
|
|
102
|
-
Object.defineProperty(exports, 'interpolateParamsToUrl', {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function get() {
|
|
105
|
-
return _params.interpolateParamsToUrl;
|
|
106
|
-
}
|
|
107
|
-
});
|