Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DigiGov-OSS
AuditRecordDB
Commits
3e301872
Commit
3e301872
authored
Feb 17, 2022
by
Panagiotis Skarvelis
Browse files
make path optional
parent
c01663f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
dist/cjs/engines/file/FileEngine.d.ts
View file @
3e301872
...
...
@@ -9,7 +9,7 @@ import { AuditRecord, AuditEngine, SEQTYPES } from '../../interfaces/index.js';
*/
export
declare
class
FileEngine
implements
AuditEngine
{
#
private
;
constructor
(
path
:
string
,
pnseqtype
?:
SEQTYPES
);
constructor
(
path
?
:
string
,
pnseqtype
?:
SEQTYPES
);
/**
* @description Store a record in the database
* @param {AuditRecord} record - record to be stored
...
...
dist/cjs/engines/file/FileEngine.js
View file @
3e301872
...
...
@@ -32,7 +32,7 @@ class FileEngine {
constructor
(
path
,
pnseqtype
)
{
_FileEngine_path
.
set
(
this
,
void
0
);
_FileEngine_pnseqtype
.
set
(
this
,
void
0
);
__classPrivateFieldSet
(
this
,
_FileEngine_path
,
path
,
"
f
"
);
__classPrivateFieldSet
(
this
,
_FileEngine_path
,
path
?
path
:
"
/tmp
"
,
"
f
"
);
__classPrivateFieldSet
(
this
,
_FileEngine_pnseqtype
,
pnseqtype
||
"
innumerable
"
,
"
f
"
);
}
/**
...
...
dist/esm/engines/file/FileEngine.d.ts
View file @
3e301872
...
...
@@ -9,7 +9,7 @@ import { AuditRecord, AuditEngine, SEQTYPES } from '../../interfaces/index.js';
*/
export
declare
class
FileEngine
implements
AuditEngine
{
#
private
;
constructor
(
path
:
string
,
pnseqtype
?:
SEQTYPES
);
constructor
(
path
?
:
string
,
pnseqtype
?:
SEQTYPES
);
/**
* @description Store a record in the database
* @param {AuditRecord} record - record to be stored
...
...
dist/esm/engines/file/FileEngine.js
View file @
3e301872
...
...
@@ -14,7 +14,7 @@ export class FileEngine {
#
path
;
#
pnseqtype
;
constructor
(
path
,
pnseqtype
)
{
this
.
#
path
=
path
;
this
.
#
path
=
path
?
path
:
"
/tmp
"
;
this
.
#
pnseqtype
=
pnseqtype
||
"
innumerable
"
;
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment