aaden-cli 1.2.48 → 1.2.49

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.
File without changes
File without changes
@@ -6,4 +6,6 @@ delete from Zbon where 1=1;
6
6
  delete from AccessLog where 1=1;
7
7
  delete from PrintQuest where 1=1;
8
8
  delete from PaymentLog where 1=1;
9
- delete from ZbonCombiendRecord where 1=1;
9
+ delete from ZbonCombinedRecord where 1=1;
10
+ insert into ZbonCombinedRecord (zbonNumber, toTimestamp)
11
+ values (0, current_timestamp);
File without changes
package/dist/index.js CHANGED
@@ -58161,7 +58161,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
58161
58161
  /***/ ((module) => {
58162
58162
 
58163
58163
  "use strict";
58164
- module.exports = {"i8":"1.2.47"};
58164
+ module.exports = {"i8":"1.2.48"};
58165
58165
 
58166
58166
  /***/ }),
58167
58167
 
@@ -0,0 +1,28 @@
1
+ #!/bin/bash
2
+
3
+ DeviceId=$(cat /var/www/html/Resource/config/config.ini | grep -e DeviceId | cut -d = -f 2 | grep '[1-9]*' | sed 's/"//g')
4
+ aaden-cli update-ngrok-config $DeviceId
5
+ ln -s /usr/bin/aaden-cli /usr/local/bin/aaden-cli
6
+
7
+ ServiceFileName=/etc/systemd/system/aaden-ngrok.service
8
+
9
+ sudo touch $ServiceFileName
10
+ sudo chmod 777 $ServiceFileName
11
+ echo -e "
12
+ [Unit]
13
+ Description=Ngrok Service For Aaden
14
+
15
+ [Service]
16
+ Type=simple
17
+ Restart=always
18
+ RestartSec=1
19
+ User=root
20
+ ExecStart=/usr/local/bin/aaden-cli ngrok
21
+
22
+ [Install]
23
+ WantedBy=multi-user.target
24
+ " >$ServiceFileName
25
+
26
+ sudo systemctl start aaden-ngrok.service
27
+ sudo systemctl enable aaden-ngrok.service
28
+ sudo systemctl daemon-reload
@@ -0,0 +1,19 @@
1
+ echo "Innerken322." | sudo -S su
2
+ sudo touch /etc/aaden/AbstractDatevCsvFile.php
3
+ sudo chmod 777 /etc/aaden/AbstractDatevCsvFile.php
4
+ php -r $'print preg_replace(\'/ {4}public function toCsvArray\(\$items\)\r?\n(?:.*\r?\n)+? {4}}/\', <<<\'PHP\'
5
+ public function toCsvArray($items)
6
+ {
7
+ yield $this->getHeader()->toArray($items[\'header\']);
8
+
9
+ $fields = $this->getFields();
10
+
11
+ yield array_map(Utils::itAccessMethod(\'getName\'), $fields);
12
+
13
+ foreach ($items[\'body\'] as $item) {
14
+ yield array_map(Utils::itAccessMethod(\'transform\', $item), $fields);
15
+ }
16
+ }
17
+ PHP
18
+ , file_get_contents("/var/www/html/PHP/Datev/FileStructures/AbstractDatevCsvFile.php"));' > /etc/aaden/AbstractDatevCsvFile.php
19
+ sudo cp /etc/aaden/AbstractDatevCsvFile.php /var/www/html/PHP/Datev/FileStructures/AbstractDatevCsvFile.php
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aaden-cli",
3
- "version": "1.2.48",
3
+ "version": "1.2.49",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -0,0 +1,19 @@
1
+ echo "Innerken322." | sudo -S su
2
+ sudo touch /etc/aaden/AbstractDatevCsvFile.php
3
+ sudo chmod 777 /etc/aaden/AbstractDatevCsvFile.php
4
+ php -r $'print preg_replace(\'/ {4}public function toCsvArray\(\$items\)\r?\n(?:.*\r?\n)+? {4}}/\', <<<\'PHP\'
5
+ public function toCsvArray($items)
6
+ {
7
+ yield $this->getHeader()->toArray($items[\'header\']);
8
+
9
+ $fields = $this->getFields();
10
+
11
+ yield array_map(Utils::itAccessMethod(\'getName\'), $fields);
12
+
13
+ foreach ($items[\'body\'] as $item) {
14
+ yield array_map(Utils::itAccessMethod(\'transform\', $item), $fields);
15
+ }
16
+ }
17
+ PHP
18
+ , file_get_contents("/var/www/html/PHP/Datev/FileStructures/AbstractDatevCsvFile.php"));' > /etc/aaden/AbstractDatevCsvFile.php
19
+ sudo cp /etc/aaden/AbstractDatevCsvFile.php /var/www/html/PHP/Datev/FileStructures/AbstractDatevCsvFile.php