removed jsonwebtoken; installedir-codes;

$>npm update
 Added SQL script with some commands
This commit is contained in:
d-popov
2020-04-09 19:46:51 +03:00
parent b628ade4dd
commit 103113705b
5 changed files with 226 additions and 103 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
/node_modules
/.vscode

190
db/A23_Commands.sql Normal file
View File

@@ -0,0 +1,190 @@
INSERT INTO `commands` (-- 'Power: On,Mode: 1 (Heat),Temp: 22C,Fan: 5 (High),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off',
`device`,
`command`,
`info`,
`ac_power`,`ac_mode`,
`ac_fan`,`ac_temp`,
`ac_turbo`,`ac_swing`,`ac_display`,`ac_econo`, `ac_health`,
`createdAt`,
`updatedAt`
) VALUES ('A23',
'3118,1596,522,1070,526,1066,530,296,528,298,526,300,524,1068,528,298,524,302,522,1068,526,1064,520,306,528,1062,522,304,530,322,500,1064,520,1070,524,302,522,1068,526,1064,522,304,528,296,528,1064,520,306,528,296,528,1064,520,304,530,296,526,298,524,300,524,302,520,304,530,296,526,298,524,328,496,302,520,304,530,296,526,298,524,300,524,304,530,296,528,296,526,1064,530,296,528,298,526,1066,530,296,526,300,524,1066,528,298,526,300,524,302,522,332,502,296,526,300,524,302,520,1070,526,328,496,302,520,1070,524,302,522,304,530,296,528,298,526,1066,530,296,526,1064,520,304,530,300,524,300,524,1066,530,324,500,298,524,302,522,304,528,296,528,298,524,302,522,304,530,296,526,298,524,302,522,302,530,296,528,298,526,298,524,302,522,304,528,298,526,300,524,302,522,304,530,296,528,298,526,300,522,304,520,304,528,298,526,300,524,302,522,304,530,296,528,298,524,302,520,306,528,324,500,300,524,1068,528,298,526,300,522,304,530,1062,524',
'Power: On,Mode: 1 (Heat),Temp: 22C,Fan: 5 (High),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off',
'1', 'Heat',
'Hi', '22',
'0', '0', '0', '0', '0',
'2020-04-06 00:00:00',
'2020-04-06 00:00:00');
INSERT INTO `commands` ( --Power: On,Mode: 1 (Heat),Temp: 22C,Fan: 0 (Auto),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off
`device`,
`command`,
`info`,
`ac_power`,`ac_mode`,
`ac_fan`,`ac_temp`,
`ac_turbo`,`ac_swing`,`ac_display`,`ac_econo`, `ac_health`,
`createdAt`,
`updatedAt`
) VALUES ('A23',
'3120,1594,524,1066,530,1062,522,302,522,304,528,296,526,1066,520,304,530,296,526,1066,520,1072,524,302,522,1068,526,298,524,302,522,1068,526,1066,530,296,528,1064,522,1070,526,300,524,302,520,1070,578,248,522,304,520,1070,524,302,522,302,520,306,528,296,528,298,524,302,522,304,530,296,528,298,524,300,522,302,520,308,526,298,526,300,524,302,520,304,528,298,526,1066,530,296,528,298,524,1068,528,296,526,328,496,1070,526,298,524,302,522,304,530,296,526,300,524,302,522,304,530,1062,522,304,530,296,528,1064,520,306,528,298,526,300,524,302,522,304,528,296,528,298,524,302,522,330,504,296,526,1064,530,296,528,298,524,302,522,332,502,296,528,298,524,300,524,302,530,296,528,298,526,300,522,302,520,306,528,298,526,300,524,302,522,306,528,298,526,300,524,302,520,306,528,324,500,300,524,302,522,304,528,296,528,300,524,302,522,304,530,322,500,298,524,300,522,304,530,1062,524,1068,528,298,524,302,522,304,530,296,528,298,524,1066,528',
'0x23CB260100240109400000000083 (112 Bits) Power: On,Mode: 1 (Heat),Temp: 22C,Fan: 5 (High),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off;',
'1', 'Heat',
'Hi', '22',
'0', '0', '0', '0', '0',
'2020-04-06 00:00:00',
'2020-04-06 00:00:00');
INSERT INTO `commands` ( --Power: On,Mode: 8 (Auto),Temp: 23C,Fan: 0 (Auto),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off'
`device`,
`command`,
`info`,
`ac_power`,`ac_mode`,
`ac_fan`,`ac_temp`,
`ac_turbo`,`ac_swing`,`ac_display`,`ac_econo`, `ac_health`,
`createdAt`,
`updatedAt`
) VALUES ('A23',
'3112,1602,524,1068,528,1062,522,332,502,324,500,326,498,1066,530,324,498,328,494,1070,526,1064,530,324,500,1064,532,322,502,324,498,1066,530,1062,522,332,502,1062,522,1068,528,326,496,330,506,1058,526,328,496,332,502,1062,524,330,504,322,502,324,498,328,496,330,504,322,502,324,498,328,496,330,504,322,500,326,498,328,496,330,504,322,500,326,498,328,494,332,502,1062,522,330,504,322,500,1064,532,322,500,326,498,328,496,330,502,324,500,1064,532,322,502,326,498,328,496,330,502,324,500,326,498,328,494,1070,526,328,496,330,504,322,500,326,498,328,494,332,502,324,500,326,496,328,496,330,502,1062,524,330,504,322,500,324,500,326,496,330,504,322,502,324,500,326,496,330,494,332,502,324,500,326,498,328,494,332,502,322,500,326,498,328,496,330,502,324,500,326,498,328,496,330,504,322,500,326,498,328,494,330,504,324,500,326,498,328,494,332,502,324,500,326,498,328,494,1070,526,328,496,330,502,1060,524,330,504,322,502,324,500,1064,530',
'0x23CB260100240808400000000089 (112 Bits) Power: On,Mode: 8 (Auto),Temp: 23C,Fan: 0 (Auto),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off',
'1', 'Auto',
'Auto', '22',
'0', '0', '0', '0', '0',
'2020-04-06 00:00:00',
'2020-04-06 00:00:00');
----
INSERT INTO `commands` ( --Power: On,Mode: 3 (Cool),Temp: 21.5C,Fan: 0 (Auto),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off
`device`,
`command`,
`info`,
`ac_power`,`ac_mode`,
`ac_fan`,`ac_temp`,
`ac_turbo`,`ac_swing`,`ac_display`,`ac_econo`, `ac_health`,
`createdAt`,
`updatedAt`
) VALUES ('A23',
'3116,1596,522,1070,526,1066,530,322,500,326,498,328,494,1070,526,326,496,330,504,1060,526,1066,530,322,500,1064,522,332,502,324,500,1064,530,1060,524,328,496,1068,528,1064,532,322,500,324,500,1064,522,332,502,324,500,1064,532,322,502,324,500,326,498,328,496,330,502,322,500,326,498,328,496,330,504,322,502,324,500,326,496,330,504,322,502,324,500,326,496,328,494,1070,526,328,496,330,504,1060,526,328,494,332,502,1060,524,1068,528,326,498,328,496,330,504,322,502,324,498,328,496,330,504,1060,526,328,496,1068,528,326,498,328,494,332,502,324,500,326,498,328,496,330,504,322,500,326,498,328,496,1068,528,326,498,328,496,330,502,324,500,326,498,328,496,330,502,322,500,326,498,328,496,330,502,324,500,326,498,328,496,330,504,322,500,326,496,328,496,330,504,322,502,326,498,326,496,332,502,322,500,326,498,328,496,330,504,322,502,324,498,326,496,1068,528,326,498,1066,530,324,498,1066,530,1062,524,330,504,322,502,1062,522,330,504,322,502',
'0x23CB26010024030A40000000A026 (112 Bits) Power: On,Mode: 3 (Cool),Temp: 21.5C,Fan: 0 (Auto),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off',
'1', 'Cool',
'Auto', '21.5',
'0', '0', '0', '0', '0',
'2020-04-06 00:00:00',
'2020-04-06 00:00:00');
INSERT INTO `commands` ( --Power: On,Mode: 8 (Auto),Temp: 23C,Fan: 0 (Auto),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off
`device`,
`command`,
`info`,
`ac_power`,`ac_mode`,
`ac_fan`,`ac_temp`,
`ac_turbo`,`ac_swing`,`ac_display`,`ac_econo`, `ac_health`,
`createdAt`,
`updatedAt`
) VALUES ('A23',
'3122,1594,524,1068,526,1066,530,324,500,328,496,328,494,1070,526,328,496,330,502,1062,524,1068,528,324,498,1066,530,324,500,326,496,1068,526,1066,530,324,500,1064,530,1060,524,330,504,322,502,1062,524,330,504,324,500,1064,532,322,502,324,498,326,498,328,494,330,504,322,500,326,498,328,494,330,504,322,500,326,498,326,496,330,494,332,502,324,500,326,496,330,494,1068,526,326,496,330,494,1068,526,326,496,330,504,322,502,324,498,326,498,1066,530,324,500,326,496,328,496,330,504,322,500,324,498,328,496,1068,528,326,498,328,496,330,504,322,500,324,498,328,496,330,504,322,502,324,500,326,498,1066,530,324,500,326,498,328,494,330,504,324,500,326,498,328,496,330,504,322,502,324,498,328,496,330,504,322,502,324,498,326,496,330,494,332,502,324,500,326,496,328,494,332,502,324,500,326,496,330,494,332,502,324,498,328,496,330,504,320,502,324,500,326,496,330,494,332,502,1062,522,330,504,322,500,1064,530,322,502,324,498,328,496,1068,528',
'0x23CB260100240808400000000089 (112 Bits) Power: On,Mode: 8 (Auto),Temp: 23C,Fan: 0 (Auto),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off',
'1', 'Heat',
'Auto', '22',
'0', '0', '0', '0', '0',
'2020-04-06 00:00:00',
'2020-04-06 00:00:00');
--
INSERT INTO `commands` ( --Power: On,Mode: 1 (Heat),Temp: 24C,Fan: 3 (Medium),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off
`device`,
`command`,
`info`,
`ac_power`,`ac_mode`,
`ac_fan`,`ac_temp`,
`ac_turbo`,`ac_swing`,`ac_display`,`ac_econo`, `ac_health`,
`createdAt`,
`updatedAt`
) VALUES ('A23',
'3116,1602,526,1066,530,1064,532,322,500,326,498,330,494,1070,578,250,530,324,500,1064,532,1062,524,330,504,1062,524,330,504,324,500,1064,530,1064,532,322,500,1064,532,1060,524,330,504,324,500,1066,530,324,500,328,496,1068,526,328,496,332,502,324,500,326,496,330,504,322,500,328,496,330,494,332,502,326,498,328,496,334,500,324,500,326,496,330,504,322,500,326,498,1066,528,324,498,330,494,1070,526,328,496,332,502,1062,522,332,502,326,498,328,494,332,502,324,498,328,496,332,502,1062,524,1070,526,1066,528,326,498,330,494,332,502,324,498,328,496,1068,526,1066,528,326,498,330,494,332,502,326,498,1066,528,326,498,330,494,332,502,324,498,328,496,332,502,324,500,326,496,330,502,324,500,326,496,330,504,322,500,326,498,330,494,332,502,326,498,328,494,332,502,324,498,328,496,330,504,324,500,326,498,328,494,332,502,326,498,328,496,332,502,324,498,328,496,330,504,324,498,328,496,330,504,1060,524,330,504,324,500,328,496,330,504,1062,524',
'0x23CB260100240107430000000084 (112 Bits) Power: On,Mode: 1 (Heat),Temp: 24C,Fan: 3 (Medium),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off',
'1', 'Heat',
'Auto', '22',
'0', '0', '0', '0', '0',
'2020-04-06 00:00:00',
'2020-04-06 00:00:00');
--
INSERT INTO `commands` ( --Power: On,Mode: 1 (Heat),Temp: 25C,Fan: 3 (Medium),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off
`device`,
`command`,
`info`,
`ac_power`,`ac_mode`,
`ac_fan`,`ac_temp`,
`ac_turbo`,`ac_swing`,`ac_display`,`ac_econo`, `ac_health`,
`createdAt`,
`updatedAt`
) VALUES ('A23',
'3118,1600,580,1012,530,1060,524,330,504,322,500,324,498,1066,530,324,500,328,496,1068,526,1066,530,324,500,1066,530,324,500,326,496,1068,528,1066,530,322,500,1064,532,1060,524,330,504,322,500,1064,532,322,502,326,496,1068,528,324,498,328,494,332,502,324,500,326,496,330,494,332,500,326,498,328,496,330,502,324,500,326,498,330,494,332,502,326,498,328,494,332,502,1062,522,332,502,326,498,1066,528,326,498,328,494,1070,526,328,496,330,502,324,500,328,496,330,494,332,502,324,498,328,494,1068,526,1066,530,324,500,328,496,330,504,322,500,326,498,1066,528,1064,532,322,502,326,496,330,494,332,502,1062,522,332,504,324,498,328,496,330,504,322,500,326,498,328,496,332,502,324,500,326,496,330,494,332,502,324,498,328,494,332,502,322,500,326,496,330,494,332,502,324,500,326,496,330,504,322,502,324,498,328,494,330,504,322,500,326,498,330,494,330,502,324,500,326,498,328,494,1068,578,1014,528,324,498,328,494,332,502,324,500,326,498,1066,528',
'0x23CB260100240106430000000083 (112 Bits) Power: On,Mode: 1 (Heat),Temp: 25C,Fan: 3 (Medium),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off',
'1', 'Heat',
'Auto', '22',
'0', '0', '0', '0', '0',
'2020-04-06 00:00:00',
'2020-04-06 00:00:00');
--
INSERT INTO `commands` ( --Power: On,Mode: 1 (Heat),Temp: 26C,Fan: 3 (Medium),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off
`device`,
`command`,
`info`,
`ac_power`,`ac_mode`,
`ac_fan`,`ac_temp`,
`ac_turbo`,`ac_swing`,`ac_display`,`ac_econo`, `ac_health`,
`createdAt`,
`updatedAt`
) VALUES ('A23',
'3120,1596,532,1060,526,1066,528,324,500,326,496,330,494,1070,526,328,496,332,502,1062,524,1068,528,326,496,1068,528,326,498,328,494,1070,526,1066,530,324,498,1066,530,1062,522,330,504,324,500,1064,532,322,502,326,498,1066,530,324,498,328,496,330,504,322,502,324,498,326,496,330,504,322,500,326,498,328,496,332,502,322,500,326,498,328,496,330,504,322,500,326,498,1066,528,324,500,326,496,1068,528,326,496,330,494,1068,526,328,496,330,504,322,500,326,498,328,496,330,504,322,502,1062,522,332,502,1062,522,332,502,324,500,326,496,330,494,332,502,1062,522,1070,526,328,496,332,504,322,500,326,498,1066,530,324,498,328,494,330,504,322,500,326,498,328,496,330,502,324,500,326,498,328,494,332,502,324,500,326,498,328,494,332,504,324,498,326,498,328,494,332,502,324,500,326,496,328,494,332,502,324,500,328,496,330,494,332,502,324,500,326,496,330,494,332,502,324,498,328,496,332,502,1060,524,330,504,322,502,324,498,328,496,330,504,1060,524',
'0x23CB260100240105430000000082 (112 Bits) Power: On,Mode: 1 (Heat),Temp: 26C,Fan: 3 (Medium),Econo: Off,Health: Off,Light: On,Turbo: Off,Swing(H): Off,Swing(V): Off',
'1', 'Heat',
'Auto', '22',
'0', '0', '0', '0', '0',
'2020-04-06 00:00:00',
'2020-04-06 00:00:00');
--
INSERT INTO `commands` ( -- Power: Off, Mode: 1 (Heat), Temp: 22C, Fan: 3 (Medium), Econo: Off, Health: Off, Light: On, Turbo: Off, Swing(H): Off, Swing(V): Off;
`device`,
`command`,
`info`,
`ac_power`,`ac_mode`,
`ac_fan`,`ac_temp`,
`ac_turbo`,`ac_swing`,`ac_display`,`ac_econo`, `ac_health`,
`createdAt`,
`updatedAt`
) VALUES ('A23',
'3110, 1632, 496, 1094, 502, 1090, 494, 332, 502, 324, 498, 328, 496, 1096, 500, 326, 496, 330, 494, 1096, 500, 1066, 530, 324, 500, 1064, 520, 334, 500, 326, 498, 1094, 502, 1090, 496, 332, 502, 1090, 496, 1096, 500, 326, 496, 328, 496, 1096, 500, 326, 496, 330, 494, 1098, 498, 328, 496, 330, 492, 334, 500, 326, 498, 328, 496, 330, 492, 334, 500, 326, 498, 328, 496, 330, 492, 332, 502, 324, 498, 326, 496, 330, 494, 332, 502, 324, 500, 326, 496, 330, 494, 332, 502, 324, 500, 1092, 494, 332, 502, 326, 498, 1094, 502, 324, 500, 328, 496, 330, 494, 332, 502, 324, 500, 326, 496, 330, 494, 1098, 498, 328, 496, 330, 502, 1090, 496, 330, 494, 332, 500, 326, 498, 328, 494, 1096, 498, 1092, 494, 332, 502, 324, 498, 328, 496, 330, 494, 1098, 498, 328, 494, 332, 492, 334, 500, 326, 498, 328, 494, 332, 492, 334, 500, 326, 498, 330, 494, 330, 492, 334, 500, 326, 498, 328, 496, 330, 494, 332, 502, 324, 498, 328, 496, 330, 494, 332, 502, 324, 500, 326, 498, 328, 496, 330, 492, 334, 500, 326, 498, 328, 496, 330, 492, 332, 502, 326, 498, 328, 494, 330, 494, 332, 502, 1090, 494, 332, 502, 1088, 496, 330, 494, 332, 502, 324, 498, 328, 496, 330, 494, 332, 500',
'0x23CB260100200109430000008002 (112 Bits) Power: Off, Mode: 1 (Heat), Temp: 22C, Fan: 3 (Medium), Econo: Off, Health: Off, Light: On, Turbo: Off, Swing(H): Off, Swing(V): Off;',
'0', 'Heat',
'Auto', '22',
'0', '0', '0', '0', '0',
'2020-04-06 00:00:00',
'2020-04-06 00:00:00');
/*
INSERT INTO `commands` ( --
`device`,
`command`,
`info`,
`ac_power`,`ac_mode`,
`ac_fan`,`ac_temp`,
`ac_turbo`,`ac_swing`,`ac_display`,`ac_econo`, `ac_health`,
`createdAt`,
`updatedAt`
) VALUES ('A23',
'',
'0x',
'1', 'Heat',
'Auto', '22',
'0', '0', '0', '0', '0',
'2020-04-06 00:00:00',
'2020-04-06 00:00:00');
*/

125
package-lock.json generated
View File

@@ -227,14 +227,9 @@
}
},
"bson": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/bson/-/bson-1.1.3.tgz",
"integrity": "sha512-TdiJxMVnodVS7r0BdL42y/pqC9cL2iKynVwA0Ho3qbsQYr428veL3l7BQyuqiw+Q5SqqoT0m4srSY/BlZ9AxXg=="
},
"buffer-equal-constant-time": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
"integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk="
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/bson/-/bson-1.1.4.tgz",
"integrity": "sha512-S/yKGU1syOMzO86+dGpg2qGoDL0zvzcb262G+gqEy6TgP6rt6z6qxSFX/8X6vLC91P7G7C3nLs0+bvDzmvBA3Q=="
},
"buffer-from": {
"version": "1.1.1",
@@ -540,14 +535,6 @@
"safer-buffer": "^2.1.0"
}
},
"ecdsa-sig-formatter": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
"requires": {
"safe-buffer": "^5.0.1"
}
},
"editorconfig": {
"version": "0.15.3",
"resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz",
@@ -1104,11 +1091,6 @@
"resolved": "https://registry.npmjs.org/hide-powered-by/-/hide-powered-by-1.1.0.tgz",
"integrity": "sha512-Io1zA2yOA1YJslkr+AJlWSf2yWFkKjvkcL9Ni1XSUqnGLr/qRQe2UI3Cn/J9MsJht7yEVCe0SscY1HgVMujbgg=="
},
"hoek": {
"version": "2.16.3",
"resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz",
"integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0="
},
"hpkp": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/hpkp/-/hpkp-2.0.0.tgz",
@@ -1220,6 +1202,11 @@
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="
},
"ir-codes": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/ir-codes/-/ir-codes-0.0.1.tgz",
"integrity": "sha1-1cQXEGjWjXLA7nP8TdQS7LJRSFU="
},
"is-bluebird": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/is-bluebird/-/is-bluebird-1.0.2.tgz",
@@ -1250,27 +1237,11 @@
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
},
"isemail": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/isemail/-/isemail-1.2.0.tgz",
"integrity": "sha1-vgPfjMPineTSxd9lASY/H6RZXpo="
},
"isstream": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
},
"joi": {
"version": "6.10.1",
"resolved": "https://registry.npmjs.org/joi/-/joi-6.10.1.tgz",
"integrity": "sha1-TVDDGAeRIgAP5fFq8f+OGRe3fgY=",
"requires": {
"hoek": "2.x.x",
"isemail": "1.x.x",
"moment": "2.x.x",
"topo": "1.x.x"
}
},
"js-beautify": {
"version": "1.11.0",
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.11.0.tgz",
@@ -1316,18 +1287,6 @@
"graceful-fs": "^4.1.6"
}
},
"jsonwebtoken": {
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-7.4.3.tgz",
"integrity": "sha1-d/UCHeBYtgWheD+hKD6ZgS5kVjg=",
"requires": {
"joi": "^6.10.1",
"jws": "^3.1.4",
"lodash.once": "^4.0.0",
"ms": "^2.0.0",
"xtend": "^4.0.1"
}
},
"jsprim": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
@@ -1339,25 +1298,6 @@
"verror": "1.10.0"
}
},
"jwa": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
"integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
"requires": {
"buffer-equal-constant-time": "1.0.1",
"ecdsa-sig-formatter": "1.0.11",
"safe-buffer": "^5.0.1"
}
},
"jws": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
"integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
"requires": {
"jwa": "^1.4.1",
"safe-buffer": "^5.0.1"
}
},
"kareem": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.1.tgz",
@@ -1385,11 +1325,6 @@
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
},
"lodash.once": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
"integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w="
},
"long": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz",
@@ -1515,9 +1450,9 @@
}
},
"mongoose": {
"version": "5.9.5",
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.9.5.tgz",
"integrity": "sha512-2kMNZCZRWCMtww4f//CwdGH6BjO3+9/c3YdsC6nbzdJVyl8+GRtNfgrKUge3226VZXXLJa6LwxXN2K8/Dh4irg==",
"version": "5.9.7",
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.9.7.tgz",
"integrity": "sha512-WJOBh9WMvivqBK8my9HFtSzSySKdUxJPNGAwswEakAasWUcPXJl3yHMtZ4ngGnKbwTT9KnAr75xamlt/PouR9w==",
"requires": {
"bson": "~1.1.1",
"kareem": "2.3.1",
@@ -1545,15 +1480,22 @@
"integrity": "sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ=="
},
"morgan": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz",
"integrity": "sha512-HQStPIV4y3afTiCYVxirakhlCfGkI161c76kKFca7Fk1JusM//Qeo1ej2XaMniiNeaZklMVrh3vTtIzpzwbpmA==",
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz",
"integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==",
"requires": {
"basic-auth": "~2.0.0",
"basic-auth": "~2.0.1",
"debug": "2.6.9",
"depd": "~1.1.2",
"depd": "~2.0.0",
"on-finished": "~2.3.0",
"on-headers": "~1.0.1"
"on-headers": "~1.0.2"
},
"dependencies": {
"depd": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="
}
}
},
"mpath": {
@@ -2178,9 +2120,9 @@
"integrity": "sha1-1WgS4cAXpuTnw+Ojeh2m143TyT4="
},
"sequelize": {
"version": "5.21.5",
"resolved": "https://registry.npmjs.org/sequelize/-/sequelize-5.21.5.tgz",
"integrity": "sha512-n9hR5K4uQGmBGK/Y/iqewCeSFmKVsd0TRnh0tfoLoAkmXbKC4tpeK96RhKs7d+TTMtrJlgt2TNLVBaAxEwC4iw==",
"version": "5.21.6",
"resolved": "https://registry.npmjs.org/sequelize/-/sequelize-5.21.6.tgz",
"integrity": "sha512-RsgEpP2PP7txeoTWxoLLoe3xX8R2WYQAO7LNba2Ok3/pV5EFfKZry4fJXH56DUHJB909msMCHg0CJKDsQVbjcQ==",
"requires": {
"bluebird": "^3.5.0",
"cls-bluebird": "^2.1.0",
@@ -2421,14 +2363,6 @@
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
"integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
},
"topo": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/topo/-/topo-1.1.0.tgz",
"integrity": "sha1-6ddRYV0buH3IZdsYL6HKCl71NtU=",
"requires": {
"hoek": "2.x.x"
}
},
"toposort-class": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/toposort-class/-/toposort-class-1.0.1.tgz",
@@ -2633,11 +2567,6 @@
"resolved": "https://registry.npmjs.org/x-xss-protection/-/x-xss-protection-1.3.0.tgz",
"integrity": "sha512-kpyBI9TlVipZO4diReZMAHWtS0MMa/7Kgx8hwG/EuZLiA6sg4Ah/4TRdASHhRRN3boobzcYgFRUFSgHRge6Qhg=="
},
"xtend": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
"integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="
},
"y18n": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",

View File

@@ -27,11 +27,11 @@
"express-session": "^1.17.0",
"got": "^10.7.0",
"helmet": "3.21.3",
"jsonwebtoken": "^7.3.0",
"ir-codes": "0.0.1",
"moment": "^2.17.1",
"moment-timezone": "^0.5.13",
"mongoose": "^5.9.5",
"morgan": "^1.9.1",
"mongoose": "^5.9.7",
"morgan": "^1.10.0",
"mysql": "^2.18.1",
"mysql2": "^2.1.0",
"node-cron": "^2.0.3",
@@ -41,7 +41,7 @@
"passport-local": "^1.0.0",
"plaintextparser": "^1.0.3",
"request": "^2.88.2",
"sequelize": "^5.21.5",
"sequelize": "^5.21.6",
"sequelize-cli": "^5.5.1",
"swagger-ui-express": "^2.0.13",
"sync-request": "^4.0.2",

View File

@@ -17,4 +17,7 @@
</div>
</form>
INFO:
<%= model.info %>
<%= model.info %>
<%# post.forEach(function(posts){ %>
<!-- <li><%#= posts[i].title %> - <%#= posts[i].name %> </li> -->
<%# }) %>