"vandium": "6.0.0" : SyntaxError: Unexpected token =

upgrading to vandium 6, results in an error:
node_modules/vandium/node_modules/@hapi/joi/lib/errors.js:246
    isJoi = true;
          ^

SyntaxError: Unexpected token =

What version of node are you using? Should use node >= 12

same here node v12.14.0

Are you using node 12 runtime on AWS Lambda? I'm going to release soon as it seems that I put the aws-sdk as a depdendency rather than a dev dependency.

node version set to nodejs12.x

have you removed node_modules and performed an npm install?

Yes and nothing changed. Here is the complete stacktrace
ERROR in<EMAIL_ADDRESS>246:10
Module parse failed: Unexpected token (246:10)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| exports.ValidationError = class extends Error {
|
>     isJoi = true;
|     name = 'ValidationError';
|
<EMAIL_ADDRESS>9:15-34
 @ /home/user/project/node_modules/vandium/lib/validation/joi_provider.js
 @ /home/user/project/node_modules/vandium/lib/validation/validation_provider.js
 @ /home/user/project/node_modules/vandium/lib/validation/index.js
 @ /home/user/project/node_modules/vandium/lib/index.js
 @ /home/user/project/client/client.js

ERROR in<EMAIL_ADDRESS>27:16
Module parse failed: Unexpected token (27:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| internals.Base = class {
|
>     isImmutable = true;                             // Prevents Hoek from deep cloning schema objects
|
|     constructor(type) {
<EMAIL_ADDRESS>5:13-31
<EMAIL_ADDRESS> @ /home/user/project/node_modules/vandium/lib/validation/joi_provider.js
 @ /home/user/project/node_modules/vandium/lib/validation/validation_provider.js
 @ /home/user/project/node_modules/vandium/lib/validation/index.js
 @ /home/user/project/node_modules/vandium/lib/index.js
 @ /home/user/project/client/client.js

  Error --------------------------------------------------

  Error: Webpack compilation error, see above
      at /home/user/project/node_modules/serverless-webpack/lib/compile.js:38:19
      at arrayEach (/home/user/project/node_modules/lodash/lodash.js:516:11)
      at Function.forEach (/home/user/project/node_modules/lodash/lodash.js:9342:14)
      at /home/user/project/node_modules/serverless-webpack/lib/compile.js:31:11
      at tryCatcher (/home/user/project/node_modules/bluebird/js/release/util.js:16:23)
      at Promise._settlePromiseFromHandler (/home/user/project/node_modules/bluebird/js/release/promise.js:547:31)
      at Promise._settlePromise (/home/user/project/node_modules/bluebird/js/release/promise.js:604:18)
      at Promise._settlePromise0 (/home/user/project/node_modules/bluebird/js/release/promise.js:649:10)
      at Promise._settlePromises (/home/user/project/node_modules/bluebird/js/release/promise.js:729:18)
      at Promise._fulfill (/home/user/project/node_modules/bluebird/js/release/promise.js:673:18)
      at /home/user/project/node_modules/bluebird/js/release/nodeback.js:42:21
      at finalCallback (/home/user/project/node_modules/webpack/lib/MultiCompiler.js:254:12)
      at /home/user/project/node_modules/webpack/lib/MultiCompiler.js:277:6
      at done (/home/user/project/node_modules/neo-async/async.js:2931:13)
      at runCompilers (/home/user/project/node_modules/webpack/lib/MultiCompiler.js:181:48)
      at /home/user/project/node_modules/webpack/lib/MultiCompiler.js:188:7
      at /home/user/project/node_modules/webpack/lib/MultiCompiler.js:270:7
      at finalCallback (/home/user/project/node_modules/webpack/lib/Compiler.js:257:39)
      at /home/user/project/node_modules/webpack/lib/Compiler.js:273:13
      at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
      at AsyncSeriesHook.lazyCompileHook (/home/user/project/node_modules/tapable/lib/Hook.js:154:20)
      at onCompiled (/home/user/project/node_modules/webpack/lib/Compiler.js:271:21)
      at /home/user/project/node_modules/webpack/lib/Compiler.js:681:15
      at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (/home/user/project/node_modules/tapable/lib/Hook.js:154:20)
      at /home/user/project/node_modules/webpack/lib/Compiler.js:678:31
      at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (/home/user/project/node_modules/tapable/lib/Hook.js:154:20)
      at /home/user/project/node_modules/webpack/lib/Compilation.js:1423:35
      at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (/home/user/project/node_modules/tapable/lib/Hook.js:154:20)
      at /home/user/project/node_modules/webpack/lib/Compilation.js:1414:32
      at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (/home/user/project/node_modules/tapable/lib/Hook.js:154:20)
      at /home/user/project/node_modules/webpack/lib/Compilation.js:1409:36
      at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (/home/user/project/node_modules/tapable/lib/Hook.js:154:20)
      at /home/user/project/node_modules/webpack/lib/Compilation.js:1405:32
      at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
      at AsyncSeriesHook.lazyCompileHook (/home/user/project/node_modules/tapable/lib/Hook.js:154:20)
      at Compilation.seal (/home/user/project/node_modules/webpack/lib/Compilation.js:1342:27)
      at /home/user/project/node_modules/webpack/lib/Compiler.js:675:18
      at /home/user/project/node_modules/webpack/lib/Compilation.js:1261:4
      at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:24:1)
      at AsyncSeriesHook.lazyCompileHook (/home/user/project/node_modules/tapable/lib/Hook.js:154:20)
      at Compilation.finish (/home/user/project/node_modules/webpack/lib/Compilation.js:1253:28)
      at /home/user/project/node_modules/webpack/lib/Compiler.js:672:17
      at eval (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
      at /home/user/project/node_modules/webpack/lib/Compilation.js:1185:12
      at /home/user/project/node_modules/webpack/lib/Compilation.js:1097:9
      at processTicksAndRejections (internal/process/task_queues.js:75:11)

I re-ran a manual test with vanilla serverless (no plugins) and everything deployed and ran correctly. For the stack trace, it looks like you're using webpack and that's where the error is coming from (looks like the version that's installed is not processing Javascript language features available in 12.x).
What version of serverless and webpack plungin are you using?
Could you share your serverless.yml file or a sanitized version?

using node12 worked

Great - can we close this issue?


Update to cuda-python v12.2.1

Tracking updating to 12.2.1, which contains a fix for Cython 3

@conda-forge-admin , please re-render


RENAL VEIN TUMOUR INDICATOR FOR PAEDIATRIC KIDNEY

The Data Element has the correct codes but the Attribute has:

Code
Description

Dummy Enumeration
Dummy

Code system checked. Apart from web order incorrectly setting every web order to 0 (which should designate as a data element default code), the correct values are there.
Likin is investigating the web order issue.

Presence of property "Data Attribute" at the concept level could be used to ensure that concepts are correctly listed for the data attribute (albeit with incorrect web order property).

Fixed now.


Bluestore LVM documentation needs to be clarified

Bug Report
What happened:
I tried to follow the documented procedure with bluestore and lvm, which involves specifying the volume group for logical volumes (for WAL/DB).
This failed because there was an error about blkid not being able to find a PARTUUID for the specified LV.
What you expected to happen:
OSDs are created.
When I changed the configuration to include the volume group in the name of each device e.g. db: vg0/lv0 it did work.
This should be clarified in the documentation.
How to reproduce it (minimal and precise):
Use db_vg and wal_vg in the OSD configuration, as suggested at http://docs.ceph.com/ceph-ansible/master/osds/scenarios.html#bluestore
Share your group_vars files, inventory
Environment:

OS (e.g. from /etc/os-release): CentOS 7.5
Kernel (e.g. uname -a): 3.10.0-862.6.3
Docker version if applicable (e.g. docker version):
Ansible version (e.g. ansible-playbook --version): <IP_ADDRESS>
ceph-ansible version (e.g. git head or tag or stable branch): git head
Ceph version (e.g. ceph -v): 12.2.6

I am confused too, How to create LVM if i have only single physical SSD and i want to keep journal + data on same disk?

@satishdotpatel just specify it as lvm_volumes[data] directly as e.g. /dev/sdb.

everything is documented at http://docs.ceph.com/ceph-ansible/master/osds/scenarios.html#advanced-configuration


Unable to compile Dlib with Xcode iOS

Unable to compile Xcode iOS project with Dlib.
I performed following steps:

Imported Dlib in my Xcode project.
Set all "other linker flags" and "header search paths" in my Xcode settings.
Compile the code

While compiling the code, I face below error:
Dlib requires C++11 support.  Give your compiler the -std=c++11 option to enable it. in file "algs.h"

I checked my "Build settings" tab of Xcode, and updated the "Apple Clang - Language C++" > "C++ Language Dialect" flag to "-std=c++11".
Still I face the same error. Kindly help me.

any solution ?


My install packages keeps crashing pls help

My install packages keeps crashing pls help😭
I have no idea why (I have node js)

install VCBuild Tools & python

idk if the pic worked but that keeps happening

and also i cant download pyhton

did you selected C++ development in VSTools?

yeah i have this one

and im downloading the other one rn to test that out

nah still dont work even with this installed


Downgrade block-fixup-merge action to 1.1.2

That version supports to be run on push events, which means we can add
it to our bors configuration.
Something seems to be not working with bors' batch merges and GitHub's
required checks.

bors r+


fix(module:slider): fix keydown not trigger nzOnAfterChange

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

The key down event won't trigger the nzOnAfterChange callback
Issue Number: #7251
What is the new behavior?
The key down event will trigger the nzOnAfterChange callback
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

Cool


Support Request:  SwitchBot API Has No Devices With Cloud Services Enabled

Describe Your Problem
I can't control any of my switchbot devices from Home app, but it functions fine in Switchbot app.
Relevant log output
[22/11/2024, 22:06:31] [SwitchBot] [DEBUG] Platform Config pushRate Not Set: undefined
[22/11/2024, 22:06:31] [SwitchBot] [DEBUG] Platform Config maxRetries Not Set: undefined
[22/11/2024, 22:06:31] [SwitchBot] [DEBUG] Platform Config delayBetweenRetries Not Set: undefined
[22/11/2024, 22:06:31] [SwitchBot] [DEBUG] Got devices: {"statusCode":190,"body":{},"message":"Requests reached the daily limit"}
[22/11/2024, 22:06:31] [SwitchBot] [DEBUG] statusCode: 200
[22/11/2024, 22:06:31] [SwitchBot] [DEBUG] response: {"statusCode":190,"body":{},"message":"Requests reached the daily limit"}
[22/11/2024, 22:06:31] [SwitchBot] [DEBUG] SwitchBot Device Config Not Set: undefined
[22/11/2024, 22:06:31] [SwitchBot] [DEBUG] SwitchBot API Has No Devices With Cloud Services Enabled
[22/11/2024, 22:06:31] [SwitchBot] [DEBUG] IR Device Config Not Set: undefined
[22/11/2024, 22:23:26] [SwitchBot] Initializing SwitchBot platform...
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Using Platform Config Logging: debug
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Platform Config refreshRate Not Set: undefined
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Platform Config: {"platform":"Resideo","logging":"debug"}
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Plugin Version: 4.1.4
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Finished initializing platform: SwitchBot
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Verifying Config
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Config OK
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Platform BLE is not enabled
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Loading accessory from cache: Curtain
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Loading accessory from cache: Sliding Door
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Loading accessory from cache: Curtain - Left
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Loading accessory from cache: Curtain - Right
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Loading accessory from cache: Fan
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Loading accessory from cache: Humidifier
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Loading accessory from cache: Humidifier E2
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Loading accessory from cache: Curtain 2A
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Executed didFinishLaunching callback
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Retry Count: 0
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Max Retries: undefined
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Delay Between Retries: undefined
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Platform Config updateRate Not Set: undefined
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Platform Config pushRate Not Set: undefined
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Platform Config maxRetries Not Set: undefined
[22/11/2024, 22:23:28] [SwitchBot] [DEBUG] Platform Config delayBetweenRetries Not Set: undefined
[22/11/2024, 22:23:30] [SwitchBot] [DEBUG] Got devices: {"statusCode":190,"body":{},"message":"Requests reached the daily limit"}
[22/11/2024, 22:23:30] [SwitchBot] [DEBUG] statusCode: 200
[22/11/2024, 22:23:30] [SwitchBot] [DEBUG] response: {"statusCode":190,"body":{},"message":"Requests reached the daily limit"}
[22/11/2024, 22:23:30] [SwitchBot] [DEBUG] SwitchBot Device Config Not Set: undefined
[22/11/2024, 22:23:30] [SwitchBot] [DEBUG] SwitchBot API Has No Devices With Cloud Services Enabled
[22/11/2024, 22:23:30] [SwitchBot] [DEBUG] IR Device Config Not Set: undefined

Config for homebridge-switchbot
{
    "name": "SwitchBot",
    "credentials": {
        "token": "***",
        "secret": "***",
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "logging": "debug"
    },
    "platform": "SwitchBot"
}

Screenshots
No response
Device & Model
Raspberry Pi 4
Node.js Version
v22.11.0
NPM Version
N/A
Homebridge Version
v1.8.5
Homebridge SwitchBot Plugin Version
v4.1.4
Homebridge Config UI X Plugin Version
v4.63.0
Operating System
Raspbian GNU/Linux Bullseye (11)

+1

Same issue

Fixed with v4.1.5


Installation Fails due to missing Dictionary.cls

The installed attempts to add Dictionary.cls module but it is not in the repo.
        If .VBADictionary Then
            AddModule Modules, "Dictionary", "Dictionary.cls", FromLocal:=True
        End If

Check this repo: https://github.com/VBA-tools/VBA-Dictionary


Add Option to Enable/Disable IPsec Tunnel

We need to implement a feature that allows users to enable or disable specific IPsec tunnels. This feature should provide the ability to manage tunnels for different firewalls and should include:
Enable a specific IPsec tunnel.
Disable a specific IPsec tunnel.
Ensure clear tunnel status (up/down) is shown.
Implement in a way that works for different tunnel configurations.
Acceptance Criteria:
A clear option to enable or disable any IPsec tunnel.
A simple interface for toggling the tunnel status.
Ensure that changes are logged and errors are handled gracefully.

We need to implement a feature that allows users to enable or disable specific IPsec tunnels. This feature should provide the ability to manage tunnels for different firewalls and should include:
Enable a specific IPsec tunnel.
Disable a specific IPsec tunnel.
Ensure clear tunnel status (up/down) is shown.
Implement in a way that works for different tunnel configurations.
Acceptance Criteria:
A clear option to enable or disable any IPsec tunnel.
A simple interface for toggling the tunnel status.
Ensure that changes are logged and errors are handled gracefully.
Allow for testing and verification of tunnel states after changes.

Hi,
There is no setting of VPN Ipsec (Phase 1 or Phase2) for enable/disable...
Only way to disable a VPN Ipsec, it is to disable the virtual interface attached to VPN Ipsec (attach to the port)
You can use
Get-FGTSystemInterface MyVPN | Set-FGTSystemInterface -status:disable
and for the monitor, you can look Get-FGTMonitorVpnIPsec

Get-FGTSystemInterface MyVPN | Set-FGTSystemInterface -status:disable
and for the monitor, you can look Get-FGTMonitorVpnIPsec

Taht Worked !
Thanks


Treatment goal as progress bar

Display a red-to-greenish bar which indicates how many treatments have been done so far in relation to a certain, configurable goal. E.g. in the first year as a student one has to do 20 treatments, so configure that number in the preferences, and show an indication of how many have been done so far.
FUTURE TODO: as soon as the protocol generation works properly (marked as yet printed), the current number for the goal achievement has to be adapted accordingly!

should be done, after some testing it seems ok :)


time: remove unnecessary if condition segment Mon <= dec31wday since it is always true in ISOWeek()

Hi,
In ISOWeek() Mon is the first day of the week.
https://github.com/golang/go/blob/master/src/time/time.go#L565
if dec31wday := (wday + 31 - day) % 7; Mon <= dec31wday && dec31wday <= Wed {

The condition Mon <= dec31wday is always true and the line can be changed to:
if dec31wday := (wday + 31 - day) % 7; dec31wday <= Wed {

/cc @rsc

I think the code is clear, and removing the condition won't make it clearer.