Socket
Socket
Sign inDemoInstall

js-awe

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-awe - npm Package Compare versions

Comparing version 1.0.34 to 1.0.35

5

package.json
{
"name": "js-awe",
"version": "1.0.34",
"version": "1.0.35",
"homepage": "https://github.com/josuamanuel/js-awe",

@@ -11,3 +11,4 @@ "author": "josuamanuel@hotmail.com",

},
"description": "Awesome js utils and constructs",
"description": "Awesome js utils including - plan: An Asynchronous control flow with a functional taste - Chrono: record and visualize timelines in the console",
"keywords": ["async", "control flow", "executor", "planner", "Chrono", "timeline", "utils"],
"type": "module",

@@ -14,0 +15,0 @@ "main": "src/index.js",

18

README.md

@@ -30,6 +30,6 @@ # js-awe

* fun1 will receive as input all the parameters when running the plan:
plan(...)(param1, param2)
* fun2 will receive 1 input parameter corresponding with output from fun1
* fun3 will receive 1 input parameter corresponding with output from fun2
* fun1 receives all the parameters when running the plan:
plan().build(...)(param1, param2)
* fun2 receives output from fun1
* fun3 receives output from fun2
```

@@ -48,7 +48,7 @@

* fun1 will receive as input all the parameters when running the plan:
plan(...)(param1, param2)
* fun2 will receive 1 input parameter corresponding with output from fun1
* fun3 will receive 1 input parameter corresponding with output from fun1
* fun4 will receive 1 input parameter of type Array that contains two values:
* fun1 receives all the parameters when running the plan:
plan().build(...)(param1, param2)
* fun2 receives output from fun1
* fun3 receives output from fun1
* fun4 receives an array that contains two values:
[outputFromfun2, outputFromFun3]

@@ -55,0 +55,0 @@ ```

@@ -43,3 +43,3 @@

return putValueAtPos(line, value, startInterval, 0)
return putValueAtPos(line, value, startInterval)
}

@@ -46,0 +46,0 @@

@@ -1,2 +0,1 @@

import { Table, Index } from '../table.js'

@@ -8,37 +7,35 @@ import { Text } from '../components/text.js'

{
event: "getHoldings",
event: 'getHoldings',
intervals: [
{
start: new Date("2020-02-03T14:00:12.012Z"),
end: new Date("2020-02-03T14:00:12.215Z"),
start: new Date('2020-02-03T14:00:12.012Z'),
end: new Date('2020-02-03T14:00:12.215Z'),
//end: new Date("2020-02-03T14:00:13.215Z"),
},
{
start: new Date("2020-02-03T14:00:13.000Z"),
end: new Date("2020-02-03T14:00:13.215Z"),
start: new Date('2020-02-03T14:00:13.000Z'),
end: new Date('2020-02-03T14:00:13.215Z'),
},
]
],
},
{
event: "getAccounts",
event: 'getAccounts',
intervals: [
{
start: new Date("2020-02-03T14:00:12.290Z"),
end: new Date("2020-02-03T14:00:12.800"),
}
]
start: new Date('2020-02-03T14:00:12.290Z'),
end: new Date('2020-02-03T14:00:12.800'),
},
],
},
{
event: "getCards",
event: 'getCards',
intervals: [
{
start: new Date("2020-02-03T14:00:12.288Z"),
end: new Date("2020-02-03T14:00:13.100Z"),
}
]
start: new Date('2020-02-03T14:00:12.288Z'),
end: new Date('2020-02-03T14:00:13.100Z'),
},
],
},
];
]
const timeline = Table(timelineData)

@@ -51,17 +48,27 @@

.addColumn({ type: Timeline(), id: 'intervals' })
.addColumn({type: Text(), id: 'event', title: 'Events2'})
.addColumn({ type: Text(), id: 'event', title: 'Events2' })
.draw()
)
console.log(Table({
'2022-01-01':{a:1,beespot:2},
'2022-01-02':{a:3,beespot:4},
'2022-01-03':{a:5,beespot:6}
})
.addColumn({ type: Text(), id: Index, title: 'The date that is the index'})
.addColumn({ type: Text(), id: 'a', title: 'This is a'})
.addColumn({ type: Text(), id: 'beespot', title: 'b'})
.draw())
console.log(
Table({
'2022-01-01': { a: 1, beespot: 2 },
'2022-01-02': { a: 3, beespot: 4 },
'2022-01-03': { a: 5, beespot: 6 },
})
.addColumn({ type: Text(), id: Index, title: 'The date that is the index' })
.addColumn({ type: Text(), id: 'a', title: 'This is a' })
.addColumn({ type: Text(), id: 'beespot', title: 'b' })
.draw()
)
console.log(Table([{a:1,b:2},{a:3,b:443},{a:5,b:6}]).auto().draw())
console.log(
Table([
{ a: 1, b: 2 },
{ a: 3, b: 443 },
{ a: 5, b: 6 },
])
.auto()
.draw()
)
console.log(Table(timelineData).auto().draw())

@@ -71,26 +78,28 @@

{
"symbol": "DTY.L",
"RIC": undefined,
"name": "Dignity PLC",
"refIndex": "T5700P",
"refIndexDesc": "EU Travel & Leisure",
"close": "550.00",
"stopLoss": "500.26"
}, {
"symbol": "PTEC.L",
"RIC": "PTEC.L",
"name": "Playtech",
"refIndex": "T5700P",
"refIndexDesc": "EU Travel & Leisure",
"close": "573.50",
"stopLoss": "541.65"
}, {
"symbol": "FPE.DE",
"RIC": "FPEG.DE",
"name": "Fuchs Petrolub AG",
"refIndex": "SX4P",
"refIndexDesc": "EU 600 Chemicals",
"close": "32.35",
"stopLoss": "29.75"
}
symbol: 'DTY.L',
RIC: undefined,
name: 'Dignity PLC',
refIndex: 'T5700P',
refIndexDesc: 'EU Travel & Leisure',
close: '550.00',
stopLoss: '500.26',
},
{
symbol: 'PTEC.L',
RIC: 'PTEC.L',
name: 'Playtech',
refIndex: 'T5700P',
refIndexDesc: 'EU Travel & Leisure',
close: '573.50',
stopLoss: '541.65',
},
{
symbol: 'FPE.DE',
RIC: 'FPEG.DE',
name: 'Fuchs Petrolub AG',
refIndex: 'SX4P',
refIndexDesc: 'EU 600 Chemicals',
close: '32.35',
stopLoss: '29.75',
},
]

@@ -101,2 +110,6 @@

console.log(Table([{}]).auto().draw())
console.log(Table([undefined, {a:2},{b:undefined}]).auto().draw())
console.log(
Table([undefined, { a: 2 }, { b: undefined }])
.auto()
.draw()
)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc