fix(core): update
This commit is contained in:
parent
b9a2cc9efb
commit
873e1093c9
4
package-lock.json
generated
4
package-lock.json
generated
@ -7,8 +7,7 @@
|
|||||||
"@apiglobal/typedrequest-interfaces": {
|
"@apiglobal/typedrequest-interfaces": {
|
||||||
"version": "1.0.13",
|
"version": "1.0.13",
|
||||||
"resolved": "https://verdaccio.lossless.one/@apiglobal%2ftypedrequest-interfaces/-/typedrequest-interfaces-1.0.13.tgz",
|
"resolved": "https://verdaccio.lossless.one/@apiglobal%2ftypedrequest-interfaces/-/typedrequest-interfaces-1.0.13.tgz",
|
||||||
"integrity": "sha512-3mk0mMC7unqh+Bb0mPEMwEfJcLAGl5ZjA1If/OGyk56KQOBqA2mLATS40HREeGoAEcUOHU2VCwPuU/tpSVMY/w==",
|
"integrity": "sha512-3mk0mMC7unqh+Bb0mPEMwEfJcLAGl5ZjA1If/OGyk56KQOBqA2mLATS40HREeGoAEcUOHU2VCwPuU/tpSVMY/w=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"@babel/code-frame": {
|
"@babel/code-frame": {
|
||||||
"version": "7.10.1",
|
"version": "7.10.1",
|
||||||
@ -1285,7 +1284,6 @@
|
|||||||
"version": "2.0.20",
|
"version": "2.0.20",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartlog-interfaces/-/smartlog-interfaces-2.0.20.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartlog-interfaces/-/smartlog-interfaces-2.0.20.tgz",
|
||||||
"integrity": "sha512-PR3l5UVor+//UoeOLws7hX4AtL2eWEHUC4uvjRY9wkrZt3XxemzWzPYXXlBUrdr5DPqt1b7tKcOx8xyUoUei9g==",
|
"integrity": "sha512-PR3l5UVor+//UoeOLws7hX4AtL2eWEHUC4uvjRY9wkrZt3XxemzWzPYXXlBUrdr5DPqt1b7tKcOx8xyUoUei9g==",
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"@apiglobal/typedrequest-interfaces": "^1.0.13"
|
"@apiglobal/typedrequest-interfaces": "^1.0.13"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartfile-destination-file",
|
"name": "@pushrocks/smartlog-destination-file",
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a smartlog destination for transparently writing to a file",
|
"description": "a smartlog destination for transparently writing to a file",
|
||||||
@ -20,7 +20,9 @@
|
|||||||
"tslint": "^5.11.0",
|
"tslint": "^5.11.0",
|
||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {
|
||||||
|
"@pushrocks/smartlog-interfaces": "^2.0.20"
|
||||||
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
"ts_web/**/*",
|
"ts_web/**/*",
|
||||||
|
13
ts/index.ts
13
ts/index.ts
@ -1,3 +1,14 @@
|
|||||||
import * as plugins from './smartfile-destination-file.plugins';
|
import * as plugins from './smartfile-destination-file.plugins';
|
||||||
|
|
||||||
export let standardExport = 'Hi there! :) This is an exported string';
|
export class SmartlogDestinationFile implements plugins.smartlogInterfaces.ILogDestination {
|
||||||
|
|
||||||
|
public async handleLog (logPackageArg: plugins.smartlogInterfaces.ILogPackage) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
const fileStream = plugins.fs.createWriteStream(plugins.path.join(paths.nogitDir, 'output.txt'), {
|
||||||
|
flags: 'a+'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,2 +1,14 @@
|
|||||||
const removeme = {};
|
// node native scope
|
||||||
export { removeme };
|
import * as fs from 'fs';
|
||||||
|
import * as path from 'path';
|
||||||
|
|
||||||
|
export {
|
||||||
|
fs
|
||||||
|
};
|
||||||
|
|
||||||
|
// pushrocks scope
|
||||||
|
import * as smartlogInterfaces from '@pushrocks/smartlog-interfaces';
|
||||||
|
|
||||||
|
export {
|
||||||
|
smartlogInterfaces
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user