Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onflow/cadence-language-server

Package Overview
Dependencies
Maintainers
12
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onflow/cadence-language-server - npm Package Compare versions

Comparing version 1.0.0-preview.31 to 1.0.0-preview.32

5

dist/go.d.ts

@@ -12,3 +12,6 @@ export const go: Go;

importObject: {
go: {
_gotest: {
add: (a: any, b: any) => any;
};
gojs: {
"runtime.wasmExit": (sp: any) => void;

@@ -15,0 +18,0 @@ "runtime.wasmWrite": (sp: any) => void;

20

dist/go.js

@@ -1,2 +0,6 @@

// Adapted from https://github.com/golang/go/blob/go1.20.14/misc/wasm/wasm_exec.js
// Adapted from https://github.com/golang/go/blob/go1.22.3/misc/wasm/wasm_exec.js
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -11,5 +15,2 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
const enosys = () => {

@@ -182,2 +183,5 @@ const err = new Error("not implemented");

};
const setInt32 = (addr, v) => {
this.mem.setUint32(addr + 0, v, true);
};
const getInt64 = (addr) => {

@@ -266,3 +270,6 @@ const low = this.mem.getUint32(addr + 0, true);

this.importObject = {
go: {
_gotest: {
add: (a, b) => a + b,
},
gojs: {
// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)

@@ -322,4 +329,3 @@ // may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported

}
}, getInt64(sp + 8) + 1 // setTimeout has been seen to fire up to 1 millisecond early
));
}, getInt64(sp + 8)));
this.mem.setInt32(sp + 16, id, true);

@@ -326,0 +332,0 @@ },

{
"name": "@onflow/cadence-language-server",
"version": "1.0.0-preview.31",
"version": "1.0.0-preview.32",
"description": "The Cadence Language Server",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/onflow/cadence",

@@ -17,6 +17,6 @@ # Cadence Language Server

- Copy `misc/wasm/wasm_exec.js` of appropriate Go version into `src/go.js`.
Keep the last line (`export const go = new Go();`)
- Run `npx prettier -w src/go.js`
- Restore the first line (adopted from header) and last line (`export const go = new Go();`)
- Update the version in the header
- Remove the anonymous function wrapper
- Change `globalThis.Go = class {` to `class Go {`
- Run `npx prettier -w src/go.js`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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