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

@onflow/sdk-build-get-block-by-id

Package Overview
Dependencies
Maintainers
8
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onflow/sdk-build-get-block-by-id - npm Package Compare versions

Comparing version 0.0.0 to 0.0.2

8

CHANGELOG.md

@@ -5,4 +5,12 @@ ### Unreleased

### 0.0.2 -- 2021-02-02
- 2021-02-02 -- VSN `@onflow/interaction` 0.0.10 -> 0.0.11
### 0.0.1 -- 2020-02-02
- 2021-02-02 -- **BREAKING** Deprecates this builder.
### 0.0.0 -- 2020-09-29
- 2020-09-29 -- Initial port from sdk.

2

dist/sdk-build-get-block-by-id.js

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

var e=require("@onflow/interaction");exports.getBlockById=function(n){return e.pipe([e.makeGetBlockById,function(o){return o.block.id=n,e.Ok(o)}])};
var e=require("@onflow/interaction");exports.getBlockById=function(n){return console.warn("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The getBlockById builder has been deprecated and will be removed in future versions of the Flow JS-SDK/FCL.\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0004-deprecate-get-block-by-id-builder\n\n ============================\n ","font-weight:bold;font-family:monospace;"),e.pipe([e.makeGetBlockById,function(o){return o.block.ids=[n],e.Ok(o)}])};
//# sourceMappingURL=sdk-build-get-block-by-id.js.map

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

import{pipe as o,makeGetBlockById as n,Ok as r}from"@onflow/interaction";function t(t){return o([n,o=>(o.block.id=t,r(o))])}export{t as getBlockById};
import{pipe as e,makeGetBlockById as o,Ok as n}from"@onflow/interaction";function t(t){return console.warn("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The getBlockById builder has been deprecated and will be removed in future versions of the Flow JS-SDK/FCL.\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0004-deprecate-get-block-by-id-builder\n\n ============================\n ","font-weight:bold;font-family:monospace;"),e([o,e=>(e.block.ids=[t],n(e))])}export{t as getBlockById};
//# sourceMappingURL=sdk-build-get-block-by-id.modern.js.map

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

import{pipe as n,makeGetBlockById as o,Ok as r}from"@onflow/interaction";function t(t){return n([o,function(n){return n.block.id=t,r(n)}])}export{t as getBlockById};
import{pipe as e,makeGetBlockById as n,Ok as o}from"@onflow/interaction";function t(t){return console.warn("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The getBlockById builder has been deprecated and will be removed in future versions of the Flow JS-SDK/FCL.\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0004-deprecate-get-block-by-id-builder\n\n ============================\n ","font-weight:bold;font-family:monospace;"),e([n,function(e){return e.block.ids=[t],o(e)}])}export{t as getBlockById};
//# sourceMappingURL=sdk-build-get-block-by-id.module.js.map

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@onflow/interaction")):"function"==typeof define&&define.amd?define(["exports","@onflow/interaction"],n):n((e=e||self).sdkBuildGetBlockById={},e.interaction)}(this,function(e,n){e.getBlockById=function(e){return n.pipe([n.makeGetBlockById,function(o){return o.block.id=e,n.Ok(o)}])}});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@onflow/interaction")):"function"==typeof define&&define.amd?define(["exports","@onflow/interaction"],n):n((e=e||self).sdkBuildGetBlockById={},e.interaction)}(this,function(e,n){e.getBlockById=function(e){return console.warn("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The getBlockById builder has been deprecated and will be removed in future versions of the Flow JS-SDK/FCL.\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0004-deprecate-get-block-by-id-builder\n\n ============================\n ","font-weight:bold;font-family:monospace;"),n.pipe([n.makeGetBlockById,function(o){return o.block.ids=[e],n.Ok(o)}])}});
//# sourceMappingURL=sdk-build-get-block-by-id.umd.js.map
{
"name": "@onflow/sdk-build-get-block-by-id",
"version": "0.0.0",
"version": "0.0.2",
"description": "Flow JS SDK Builder -- Get Block By ID",

@@ -27,3 +27,3 @@ "license": "Apache-2.0",

"dependencies": {
"@onflow/interaction": "0.0.10"
"@onflow/interaction": "0.0.11"
},

@@ -30,0 +30,0 @@ "source": "src/index.js",

@@ -1,8 +0,22 @@

import {pipe, Ok, makeGetBlockById} from "@onflow/interaction"
import {is, pipe, Ok, makeGetBlockById} from "@onflow/interaction"
export function getBlockById(id) {
console.warn(
`
%cFCL/SDK Deprecation Notice
============================
The getBlockById builder has been deprecated and will be removed in future versions of the Flow JS-SDK/FCL.
You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0004-deprecate-get-block-by-id-builder
============================
`,
"font-weight:bold;font-family:monospace;"
)
return pipe([
makeGetBlockById,
ix => {
ix.block.id = id
ix.block.ids = [id]
return Ok(ix)

@@ -9,0 +23,0 @@ }

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 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