New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

motoko

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

motoko - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

45

contrib/snippets.json

@@ -47,3 +47,4 @@ {

"body": [
"type ${1:Name} = ${2:declaration};"
"type ${1:Name} = ${2:declaration};",
"$0"
],

@@ -59,3 +60,4 @@ "description": "simple type declaration"

"\t${2:attribute} : ${3:Type};",
"};"
"};",
"$0"
],

@@ -71,3 +73,4 @@ "description": "object / record type block"

"\t#${2:tag};",
"};"
"};",
"$0"
],

@@ -81,3 +84,4 @@ "description": "variant type block"

"body": [
"var ${1:name} = ${2:value};"
"var ${1:name} = ${2:value};",
"$0"
],

@@ -91,3 +95,4 @@ "description": "declare a mutable variable"

"body": [
"let ${1:name} = ${2:value};"
"let ${1:name} = ${2:value};",
"$0"
],

@@ -123,3 +128,4 @@ "description": "declare an immutable variable"

"body": [
"import ${1:Module} \"mo:base/${1}\";"
"import ${1:Module} \"mo:base/${1}\";",
"$0"
]

@@ -132,3 +138,4 @@ },

"body": [
"import ${1:Module} \"canister:${2}\";"
"import ${1:Module} \"canister:${2}\";",
"$0"
]

@@ -278,3 +285,4 @@ },

"body": [
"var ${1:array} = [];"
"var ${1:array} = [];",
"$0"
]

@@ -287,3 +295,4 @@ },

"body": [
"let ${1:map} = HashMap.HashMap<${2:Text}, ${3:Nat}>(0, ${2}.equal, ${2}.hash);"
"let ${1:map} = HashMap.HashMap<${2:Text}, ${3:Nat}>(0, ${2}.equal, ${2}.hash);",
"$0"
]

@@ -296,3 +305,4 @@ },

"body": [
"var ${1:trie} = Trie.empty<${2:Text}, ${3:Nat}>();"
"var ${1:trie} = Trie.empty<${2:Text}, ${3:Nat}>();",
"$0"
]

@@ -305,3 +315,4 @@ },

"body": [
"let ${1:map} = TrieMap.TrieMap<${2:Text}, ${3:Nat}>(0);"
"let ${1:map} = TrieMap.TrieMap<${2:Text}, ${3:Nat}>(0);",
"$0"
]

@@ -314,3 +325,4 @@ },

"body": [
"let ${1:map} = RBTree.RBTree<${2:Text}, ${3:Nat}>(${2}.compare);"
"let ${1:map} = RBTree.RBTree<${2:Text}, ${3:Nat}>(${2}.compare);",
"$0"
]

@@ -323,3 +335,4 @@ },

"body": [
"let ${1:set} = TrieSet.empty<${2:Text}>();"
"let ${1:set} = TrieSet.empty<${2:Text}>();",
"$0"
]

@@ -332,3 +345,4 @@ },

"body": [
"let ${1:queue} = Deque.empty<${2:Text}>();"
"let ${1:queue} = Deque.empty<${2:Text}>();",
"$0"
]

@@ -341,3 +355,4 @@ },

"body": [
"var ${1:list} = List.nil<${2:Text}>();"
"var ${1:list} = List.nil<${2:Text}>();",
"$0"
]

@@ -344,0 +359,0 @@ },

@@ -20,2 +20,3 @@ export declare type CompilerAST = CompilerAST[] | CompilerNode | string | null;

type?: string;
doc?: string;
declaration?: Source;

@@ -22,0 +23,0 @@ args?: AST[];

@@ -28,2 +28,8 @@ "use strict";

}
if (ast.name === '*') {
const [doc, docAst] = ast.args;
return Object.assign(Object.assign({}, (typeof docAst === 'string'
? { name: docAst }
: simplifyAST(docAst))), { doc });
}
return {

@@ -30,0 +36,0 @@ name: ast.name,

{
"name": "motoko",
"version": "3.1.0",
"version": "3.1.1",
"description": "Compile and run Motoko smart contracts in Node.js or the browser.",

@@ -5,0 +5,0 @@ "author": "Ryan Vandersmith (https://github.com/rvanasa)",

@@ -21,2 +21,3 @@ export type CompilerAST = CompilerAST[] | CompilerNode | string | null;

type?: string;
doc?: string;
declaration?: Source;

@@ -65,2 +66,11 @@ args?: AST[];

}
if (ast.name === '*') {
const [doc, docAst] = ast.args as [string, CompilerAST];
return {
...(typeof docAst === 'string'
? { name: docAst }
: simplifyAST(docAst)),
doc,
};
}
return {

@@ -67,0 +77,0 @@ name: ast.name,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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