motoko 3.3.2 → 3.3.3
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.
- package/contrib/snippets.json +55 -1
- package/package.json +1 -1
    
        package/contrib/snippets.json
    CHANGED
    
    | @@ -366,6 +366,60 @@ | |
| 366 366 | 
             
                        "#err($0)"
         | 
| 367 367 | 
             
                    ]
         | 
| 368 368 | 
             
                },
         | 
| 369 | 
            +
                "Debug Block": {
         | 
| 370 | 
            +
                    "prefix": [
         | 
| 371 | 
            +
                        "debug-block"
         | 
| 372 | 
            +
                    ],
         | 
| 373 | 
            +
                    "body": [
         | 
| 374 | 
            +
                        "debug {",
         | 
| 375 | 
            +
                        "\t$0",
         | 
| 376 | 
            +
                        "};"
         | 
| 377 | 
            +
                    ]
         | 
| 378 | 
            +
                },
         | 
| 379 | 
            +
                "Print": {
         | 
| 380 | 
            +
                    "prefix": [
         | 
| 381 | 
            +
                        "debug-print"
         | 
| 382 | 
            +
                    ],
         | 
| 383 | 
            +
                    "body": [
         | 
| 384 | 
            +
                        "Debug.print(debug_show ($0));"
         | 
| 385 | 
            +
                    ]
         | 
| 386 | 
            +
                },
         | 
| 387 | 
            +
                "Trap": {
         | 
| 388 | 
            +
                    "prefix": [
         | 
| 389 | 
            +
                        "debug-trap"
         | 
| 390 | 
            +
                    ],
         | 
| 391 | 
            +
                    "body": [
         | 
| 392 | 
            +
                        "Debug.trap(\"$0\");"
         | 
| 393 | 
            +
                    ]
         | 
| 394 | 
            +
                },
         | 
| 395 | 
            +
                "Set Timer": {
         | 
| 396 | 
            +
                    "prefix": [
         | 
| 397 | 
            +
                        "set-timer"
         | 
| 398 | 
            +
                    ],
         | 
| 399 | 
            +
                    "body": [
         | 
| 400 | 
            +
                        "let ${$1:id} = Timer.setTimer(#seconds ${$2:0}, func () {",
         | 
| 401 | 
            +
                        "\t$0",
         | 
| 402 | 
            +
                        "});"
         | 
| 403 | 
            +
                    ]
         | 
| 404 | 
            +
                },
         | 
| 405 | 
            +
                "Recurring Timer": {
         | 
| 406 | 
            +
                    "prefix": [
         | 
| 407 | 
            +
                        "recurring-timer"
         | 
| 408 | 
            +
                    ],
         | 
| 409 | 
            +
                    "body": [
         | 
| 410 | 
            +
                        "let ${$1:id} = Timer.recurringTimer(#seconds ${$2:0}, func () {",
         | 
| 411 | 
            +
                        "\t$0",
         | 
| 412 | 
            +
                        "});"
         | 
| 413 | 
            +
                    ]
         | 
| 414 | 
            +
                },
         | 
| 415 | 
            +
                "Cancel Timer": {
         | 
| 416 | 
            +
                    "prefix": [
         | 
| 417 | 
            +
                        "cancel-timer"
         | 
| 418 | 
            +
                    ],
         | 
| 419 | 
            +
                    "body": [
         | 
| 420 | 
            +
                        "Timer.cancelTimer(${$1:id});"
         | 
| 421 | 
            +
                    ]
         | 
| 422 | 
            +
                },
         | 
| 369 423 | 
             
                "Array to Blob": {
         | 
| 370 424 | 
             
                    "prefix": [
         | 
| 371 425 | 
             
                        "array-2-blob"
         | 
| @@ -435,7 +489,7 @@ | |
| 435 489 | 
             
                        "text-2-actor"
         | 
| 436 490 | 
             
                    ],
         | 
| 437 491 | 
             
                    "body": [
         | 
| 438 | 
            -
                        "actor (${1:text}) | 
| 492 | 
            +
                        "actor (${1:text}) : actor { $2 }"
         | 
| 439 493 | 
             
                    ]
         | 
| 440 494 | 
             
                }
         | 
| 441 495 | 
             
            }
         | 
    
        package/package.json
    CHANGED