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

@staratlas/data-source

Package Overview
Dependencies
Maintainers
4
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@staratlas/data-source - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

8

dist/src/account.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.decodeAccountWithRemaining = exports.decodeAccount = void 0;
const anchor_1 = require("@project-serum/anchor");
const camelcase_1 = __importDefault(require("camelcase"));
function decodeAccount(account, program, accountClass) {

@@ -29,3 +25,3 @@ if (!account.accountInfo.owner.equals(program.programId)) {

const coder = program.coder;
const data = coder.accounts.decode((0, camelcase_1.default)(accountClass.ACCOUNT_NAME, { pascalCase: true }), account.accountInfo.data);
const data = coder.accounts.decode(accountClass.ACCOUNT_NAME, account.accountInfo.data);
return {

@@ -67,3 +63,3 @@ type: 'ok',

const coder = program.coder;
const data = coder.accounts.decode((0, camelcase_1.default)(accountClass.ACCOUNT_NAME, { pascalCase: true }), account.accountInfo.data);
const data = coder.accounts.decode(accountClass.ACCOUNT_NAME, account.accountInfo.data);
return {

@@ -70,0 +66,0 @@ type: 'ok',

{
"name": "@staratlas/data-source",
"version": "0.2.1",
"version": "0.2.2",
"description": "> TODO: description",

@@ -28,3 +28,3 @@ "author": "Brett Etter <brett.etter@staratlas.com>",

},
"gitHead": "85119c642c3b2a0c79f15e3e766655f4b74a975f"
"gitHead": "95e0c5948f56d6b4f623b7ef37a60205fac7378a"
}

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