@spinajs/templates-cvs 2.0.179 → 2.0.181

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.
@@ -1,16 +1,16 @@
1
- import { TemplateRenderer } from '@spinajs/templates';
2
- import { Log } from '@spinajs/log';
3
- export interface IJsonToCsvOptions {
4
- fields: string[];
5
- data: unknown;
6
- }
7
- export declare class Csv extends TemplateRenderer {
8
- protected Options: any;
9
- protected Log: Log;
10
- get Type(): string;
11
- get Extension(): string;
12
- renderToFile(_template: string, model: IJsonToCsvOptions, filePath: string, language?: string): Promise<void>;
13
- render(_templateName: string, model: IJsonToCsvOptions, _language?: string): Promise<string>;
14
- protected compile(_path: string): Promise<void>;
15
- }
1
+ import { TemplateRenderer } from '@spinajs/templates';
2
+ import { Log } from '@spinajs/log';
3
+ export interface IJsonToCsvOptions {
4
+ fields: string[];
5
+ data: unknown;
6
+ }
7
+ export declare class Csv extends TemplateRenderer {
8
+ protected Options: any;
9
+ protected Log: Log;
10
+ get Type(): string;
11
+ get Extension(): string;
12
+ renderToFile(_template: string, model: IJsonToCsvOptions, filePath: string, language?: string): Promise<void>;
13
+ render(_templateName: string, model: IJsonToCsvOptions, _language?: string): Promise<string>;
14
+ protected compile(_path: string): Promise<void>;
15
+ }
16
16
  //# sourceMappingURL=index.d.ts.map
package/lib/cjs/index.js CHANGED
@@ -1,85 +1,85 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
- return c > 3 && r && Object.defineProperty(target, key, r), r;
23
- };
24
- var __importStar = (this && this.__importStar) || function (mod) {
25
- if (mod && mod.__esModule) return mod;
26
- var result = {};
27
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
28
- __setModuleDefault(result, mod);
29
- return result;
30
- };
31
- var __metadata = (this && this.__metadata) || function (k, v) {
32
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
33
- };
34
- Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.Csv = void 0;
36
- const fs = __importStar(require("fs"));
37
- const node_1 = require("@json2csv/node");
38
- const templates_1 = require("@spinajs/templates");
39
- const configuration_1 = require("@spinajs/configuration");
40
- const di_1 = require("@spinajs/di");
41
- const log_1 = require("@spinajs/log");
42
- let Csv = class Csv extends templates_1.TemplateRenderer {
43
- get Type() {
44
- return 'csv';
45
- }
46
- get Extension() {
47
- return '.csv';
48
- }
49
- async renderToFile(_template, model, filePath, language) {
50
- this.Log.trace(`Rendering template ${_template} to file ${filePath}`);
51
- try {
52
- const csv = await this.render(_template, model, language);
53
- fs.writeFileSync(csv, csv, 'utf8');
54
- }
55
- catch (err) {
56
- this.Log.error(err, `Error rendering template ${_template} to file ${filePath}`);
57
- throw err;
58
- }
59
- finally {
60
- this.Log.trace(`Ended rendering template ${_template} to file ${filePath}`);
61
- }
62
- }
63
- async render(_templateName, model, _language) {
64
- const parser = new node_1.AsyncParser({
65
- fields: model.fields,
66
- ...this.Options
67
- });
68
- // todo: maybe use writable stream in future for large data sets
69
- return await parser.parse(model.data).promise();
70
- }
71
- async compile(_path) { }
72
- };
73
- __decorate([
74
- (0, configuration_1.Config)('templates.csv'),
75
- __metadata("design:type", Object)
76
- ], Csv.prototype, "Options", void 0);
77
- __decorate([
78
- (0, log_1.Logger)('csv-templates'),
79
- __metadata("design:type", log_1.Log)
80
- ], Csv.prototype, "Log", void 0);
81
- Csv = __decorate([
82
- (0, di_1.Injectable)(templates_1.TemplateRenderer)
83
- ], Csv);
84
- exports.Csv = Csv;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || function (mod) {
25
+ if (mod && mod.__esModule) return mod;
26
+ var result = {};
27
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
28
+ __setModuleDefault(result, mod);
29
+ return result;
30
+ };
31
+ var __metadata = (this && this.__metadata) || function (k, v) {
32
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.Csv = void 0;
36
+ const fs = __importStar(require("fs"));
37
+ const node_1 = require("@json2csv/node");
38
+ const templates_1 = require("@spinajs/templates");
39
+ const configuration_1 = require("@spinajs/configuration");
40
+ const di_1 = require("@spinajs/di");
41
+ const log_1 = require("@spinajs/log");
42
+ let Csv = class Csv extends templates_1.TemplateRenderer {
43
+ get Type() {
44
+ return 'csv';
45
+ }
46
+ get Extension() {
47
+ return '.csv';
48
+ }
49
+ async renderToFile(_template, model, filePath, language) {
50
+ this.Log.trace(`Rendering template ${_template} to file ${filePath}`);
51
+ try {
52
+ const csv = await this.render(_template, model, language);
53
+ fs.writeFileSync(csv, csv, 'utf8');
54
+ }
55
+ catch (err) {
56
+ this.Log.error(err, `Error rendering template ${_template} to file ${filePath}`);
57
+ throw err;
58
+ }
59
+ finally {
60
+ this.Log.trace(`Ended rendering template ${_template} to file ${filePath}`);
61
+ }
62
+ }
63
+ async render(_templateName, model, _language) {
64
+ const parser = new node_1.AsyncParser({
65
+ fields: model.fields,
66
+ ...this.Options
67
+ });
68
+ // todo: maybe use writable stream in future for large data sets
69
+ return await parser.parse(model.data).promise();
70
+ }
71
+ async compile(_path) { }
72
+ };
73
+ exports.Csv = Csv;
74
+ __decorate([
75
+ (0, configuration_1.Config)('templates.csv'),
76
+ __metadata("design:type", Object)
77
+ ], Csv.prototype, "Options", void 0);
78
+ __decorate([
79
+ (0, log_1.Logger)('csv-templates'),
80
+ __metadata("design:type", log_1.Log)
81
+ ], Csv.prototype, "Log", void 0);
82
+ exports.Csv = Csv = __decorate([
83
+ (0, di_1.Injectable)(templates_1.TemplateRenderer)
84
+ ], Csv);
85
85
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,yCAA6C;AAC7C,kDAAsD;AACtD,0DAAgD;AAChD,oCAAyC;AACzC,sCAA2C;AAQpC,IAAM,GAAG,GAAT,MAAM,GAAI,SAAQ,4BAAgB;IAQvC,IAAW,IAAI;QACb,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAW,SAAS;QAClB,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,SAAiB,EAAE,KAAwB,EAAE,QAAgB,EAAE,QAAiB;QAExG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,sBAAsB,SAAS,YAAY,QAAQ,EAAE,CAAC,CAAC;QAEtE,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;YAC1D,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;SACpC;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,4BAA4B,SAAS,YAAY,QAAQ,EAAE,CAAC,CAAC;YACjF,MAAM,GAAG,CAAC;SACX;gBAAS;YACR,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,4BAA4B,SAAS,YAAY,QAAQ,EAAE,CAAC,CAAC;SAE7E;IACH,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,aAAqB,EAAE,KAAwB,EAAE,SAAkB;QACrF,MAAM,MAAM,GAAG,IAAI,kBAAW,CAAC;YAC7B,MAAM,EAAE,KAAK,CAAC,MAAM;YACp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AAE,CAAC,CAAC;YACjF,MAAM,GAAG,CAAC;SACX;gBAAS;YACR,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,4BAA4B,SAAS,YAAY,QAAQ,EAAE,CAAC,CAAC;SAE7E;IACH,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,aAAqB,EAAE,KAAwB,EAAE,SAAkB;QACrF,MAAM,MAAM,GAAG,IAAI,kBAAW,CAAC;YAC7B,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,GAAG,IAAI,CAAC,OAAO;SAChB,CAAC,CAAC;QAEH,gEAAgE;QAChE,OAAO,MAAM,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;IAClD,CAAC;IAES,KAAK,CAAC,OAAO,CAAC,KAAa,IAAI,CAAC;CAC3C,CAAA;AA3CY,kBAAG;AAEJ;IADT,IAAA,sBAAM,EAAC,eAAe,CAAC;;oCACD;AAGb;IADT,IAAA,YAAM,EAAC,eAAe,CAAC;8BACT,SAAG;gCAAC;cALR,GAAG;IADf,IAAA,eAAU,EAAC,4BAAgB,CAAC;GAChB,GAAG,CA2Cf"}
@@ -1,16 +1,16 @@
1
- import { TemplateRenderer } from '@spinajs/templates';
2
- import { Log } from '@spinajs/log';
3
- export interface IJsonToCsvOptions {
4
- fields: string[];
5
- data: unknown;
6
- }
7
- export declare class Csv extends TemplateRenderer {
8
- protected Options: any;
9
- protected Log: Log;
10
- get Type(): string;
11
- get Extension(): string;
12
- renderToFile(_template: string, model: IJsonToCsvOptions, filePath: string, language?: string): Promise<void>;
13
- render(_templateName: string, model: IJsonToCsvOptions, _language?: string): Promise<string>;
14
- protected compile(_path: string): Promise<void>;
15
- }
1
+ import { TemplateRenderer } from '@spinajs/templates';
2
+ import { Log } from '@spinajs/log';
3
+ export interface IJsonToCsvOptions {
4
+ fields: string[];
5
+ data: unknown;
6
+ }
7
+ export declare class Csv extends TemplateRenderer {
8
+ protected Options: any;
9
+ protected Log: Log;
10
+ get Type(): string;
11
+ get Extension(): string;
12
+ renderToFile(_template: string, model: IJsonToCsvOptions, filePath: string, language?: string): Promise<void>;
13
+ render(_templateName: string, model: IJsonToCsvOptions, _language?: string): Promise<string>;
14
+ protected compile(_path: string): Promise<void>;
15
+ }
16
16
  //# sourceMappingURL=index.d.ts.map
package/lib/mjs/index.js CHANGED
@@ -1,59 +1,59 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import * as fs from 'fs';
11
- import { AsyncParser } from '@json2csv/node';
12
- import { TemplateRenderer } from '@spinajs/templates';
13
- import { Config } from '@spinajs/configuration';
14
- import { Injectable } from '@spinajs/di';
15
- import { Log, Logger } from '@spinajs/log';
16
- let Csv = class Csv extends TemplateRenderer {
17
- get Type() {
18
- return 'csv';
19
- }
20
- get Extension() {
21
- return '.csv';
22
- }
23
- async renderToFile(_template, model, filePath, language) {
24
- this.Log.trace(`Rendering template ${_template} to file ${filePath}`);
25
- try {
26
- const csv = await this.render(_template, model, language);
27
- fs.writeFileSync(csv, csv, 'utf8');
28
- }
29
- catch (err) {
30
- this.Log.error(err, `Error rendering template ${_template} to file ${filePath}`);
31
- throw err;
32
- }
33
- finally {
34
- this.Log.trace(`Ended rendering template ${_template} to file ${filePath}`);
35
- }
36
- }
37
- async render(_templateName, model, _language) {
38
- const parser = new AsyncParser({
39
- fields: model.fields,
40
- ...this.Options
41
- });
42
- // todo: maybe use writable stream in future for large data sets
43
- return await parser.parse(model.data).promise();
44
- }
45
- async compile(_path) { }
46
- };
47
- __decorate([
48
- Config('templates.csv'),
49
- __metadata("design:type", Object)
50
- ], Csv.prototype, "Options", void 0);
51
- __decorate([
52
- Logger('csv-templates'),
53
- __metadata("design:type", Log)
54
- ], Csv.prototype, "Log", void 0);
55
- Csv = __decorate([
56
- Injectable(TemplateRenderer)
57
- ], Csv);
58
- export { Csv };
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import * as fs from 'fs';
11
+ import { AsyncParser } from '@json2csv/node';
12
+ import { TemplateRenderer } from '@spinajs/templates';
13
+ import { Config } from '@spinajs/configuration';
14
+ import { Injectable } from '@spinajs/di';
15
+ import { Log, Logger } from '@spinajs/log';
16
+ let Csv = class Csv extends TemplateRenderer {
17
+ get Type() {
18
+ return 'csv';
19
+ }
20
+ get Extension() {
21
+ return '.csv';
22
+ }
23
+ async renderToFile(_template, model, filePath, language) {
24
+ this.Log.trace(`Rendering template ${_template} to file ${filePath}`);
25
+ try {
26
+ const csv = await this.render(_template, model, language);
27
+ fs.writeFileSync(csv, csv, 'utf8');
28
+ }
29
+ catch (err) {
30
+ this.Log.error(err, `Error rendering template ${_template} to file ${filePath}`);
31
+ throw err;
32
+ }
33
+ finally {
34
+ this.Log.trace(`Ended rendering template ${_template} to file ${filePath}`);
35
+ }
36
+ }
37
+ async render(_templateName, model, _language) {
38
+ const parser = new AsyncParser({
39
+ fields: model.fields,
40
+ ...this.Options
41
+ });
42
+ // todo: maybe use writable stream in future for large data sets
43
+ return await parser.parse(model.data).promise();
44
+ }
45
+ async compile(_path) { }
46
+ };
47
+ __decorate([
48
+ Config('templates.csv'),
49
+ __metadata("design:type", Object)
50
+ ], Csv.prototype, "Options", void 0);
51
+ __decorate([
52
+ Logger('csv-templates'),
53
+ __metadata("design:type", Log)
54
+ ], Csv.prototype, "Log", void 0);
55
+ Csv = __decorate([
56
+ Injectable(TemplateRenderer)
57
+ ], Csv);
58
+ export { Csv };
59
59
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAQpC,IAAM,GAAG,GAAT,MAAM,GAAI,SAAQ,gBAAgB;IAQvC,IAAW,IAAI;QACb,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAW,SAAS;QAClB,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,SAAiB,EAAE,KAAwB,EAAE,QAAgB,EAAE,QAAiB;QAExG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,sBAAsB,SAAS,YAAY,QAAQ,EAAE,CAAC,CAAC;QAEtE,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,C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