@magic-ext/bitcoin
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -0,1 +1,20 @@ | ||
# v3.0.0 (Tue Jan 25 2022) | ||
#### 💥 Breaking Change | ||
- Switch from `microbundle` to `esbuild` [#220](https://github.com/magiclabs/magic-js/pull/220) ([@smithki](https://github.com/smithki)) | ||
#### 🐛 Bug Fix | ||
- Merge with master ([@smithki](https://github.com/smithki)) | ||
- Merge branch 'master' into feat/faster-builds ([@smithki](https://github.com/smithki)) | ||
- Modify CDN default exports ([@smithki](https://github.com/smithki)) | ||
- Support newly added Magic JS extensions in ESBuild ([@smithki](https://github.com/smithki)) | ||
#### Authors: 1 | ||
- Ian K Smith ([@smithki](https://github.com/smithki)) | ||
--- | ||
# v1.0.0 (Wed Oct 27 2021) | ||
@@ -2,0 +21,0 @@ |
@@ -1,2 +0,2 @@ | ||
var t,n=require("@magic-sdk/commons");function o(t,n){return(o=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}!function(t){t.BitcoinSignTransaction="btc_signTransaction"}(t||(t={})),exports.BitcoinExtension=function(n){var r,i;function e(t){var o;return(o=n.call(this)||this).bitcoinConfig=void 0,o.name="bitcoin",o.config={},o.bitcoinConfig=t,o.config={rpcUrl:t.rpcUrl,chainType:"BITCOIN",options:{network:t.network}},o}return i=n,(r=e).prototype=Object.create(i.prototype),r.prototype.constructor=r,o(r,i),e.prototype.signTransaction=function(n,o){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.BitcoinSignTransaction,[n,o])))}catch(t){return Promise.reject(t)}},e}(n.Extension.Internal); | ||
var b=Object.create;var o=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var g=n=>o(n,"__esModule",{value:!0});var w=(n,i)=>{g(n);for(var t in i)o(n,t,{get:i[t],enumerable:!0})},C=(n,i,t)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of k(i))!B.call(n,r)&&r!=="default"&&o(n,r,{get:()=>i[r],enumerable:!(t=x(i,r))||t.enumerable});return n},I=n=>C(g(o(n!=null?b(y(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);var m=(n,i,t)=>new Promise((r,p)=>{var l=s=>{try{e(t.next(s))}catch(a){p(a)}},T=s=>{try{e(t.throw(s))}catch(a){p(a)}},e=s=>s.done?r(s.value):Promise.resolve(s.value).then(l,T);e((t=t.apply(n,i)).next())});w(exports,{BitcoinExtension:()=>f});var u=I(require("@magic-sdk/commons"));var c;(function(i){i.BitcoinSignTransaction="btc_signTransaction"})(c||(c={}));var f=class extends u.Extension.Internal{constructor(i){super();this.bitcoinConfig=i;this.name="bitcoin";this.config={};this.config={rpcUrl:i.rpcUrl,chainType:"BITCOIN",options:{network:i.network}}}signTransaction(i,t){return m(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload(c.BitcoinSignTransaction,[i,t]))})}}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import{Extension as t}from"@magic-sdk/commons";function n(t,o){return(n=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,o)}var o;!function(t){t.BitcoinSignTransaction="btc_signTransaction"}(o||(o={}));var r=function(t){var r,i;function c(n){var o;return(o=t.call(this)||this).bitcoinConfig=void 0,o.name="bitcoin",o.config={},o.bitcoinConfig=n,o.config={rpcUrl:n.rpcUrl,chainType:"BITCOIN",options:{network:n.network}},o}return i=t,(r=c).prototype=Object.create(i.prototype),r.prototype.constructor=r,n(r,i),c.prototype.signTransaction=function(t,n){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(o.BitcoinSignTransaction,[t,n])))}catch(t){return Promise.reject(t)}},c}(t.Internal);export{r as BitcoinExtension}; | ||
var a=(c,n,t)=>new Promise((p,e)=>{var g=i=>{try{s(t.next(i))}catch(o){e(o)}},m=i=>{try{s(t.throw(i))}catch(o){e(o)}},s=i=>i.done?p(i.value):Promise.resolve(i.value).then(g,m);s((t=t.apply(c,n)).next())});import{Extension as u}from"@magic-sdk/commons";var r;(function(n){n.BitcoinSignTransaction="btc_signTransaction"})(r||(r={}));var f=class extends u.Internal{constructor(n){super();this.bitcoinConfig=n;this.name="bitcoin";this.config={};this.config={rpcUrl:n.rpcUrl,chainType:"BITCOIN",options:{network:n.network}}}signTransaction(n,t){return a(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload(r.BitcoinSignTransaction,[n,t]))})}};export{f as BitcoinExtension}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
var MagicBitcoinExtension=function(t){function n(t,o){return(n=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,o)}var o;return function(t){t.BitcoinSignTransaction="btc_signTransaction"}(o||(o={})),function(t){var i,r;function c(n){var o;return(o=t.call(this)||this).bitcoinConfig=void 0,o.name="bitcoin",o.config={},o.bitcoinConfig=n,o.config={rpcUrl:n.rpcUrl,chainType:"BITCOIN",options:{network:n.network}},o}return r=t,(i=c).prototype=Object.create(r.prototype),i.prototype.constructor=i,n(i,r),c.prototype.signTransaction=function(t,n){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(o.BitcoinSignTransaction,[t,n])))}catch(t){return Promise.reject(t)}},c}(t.Extension.Internal)}(Magic); | ||
var MagicBitcoinExtension=(()=>{var b=Object.create;var a=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var m=i=>a(i,"__esModule",{value:!0});var E=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports);var I=(i,n,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of k(n))!C.call(i,o)&&o!=="default"&&a(i,o,{get:()=>n[o],enumerable:!(t=y(n,o))||t.enumerable});return i},U=i=>I(m(a(i!=null?b(w(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var u=(i,n,t)=>new Promise((o,g)=>{var B=r=>{try{e(t.next(r))}catch(c){g(c)}},T=r=>{try{e(t.throw(r))}catch(c){g(c)}},e=r=>r.done?o(r.value):Promise.resolve(r.value).then(B,T);e((t=t.apply(i,n)).next())});var f=E((q,x)=>{x.exports=Magic});var d={};m(d);var l=U(f());var s;(function(n){n.BitcoinSignTransaction="btc_signTransaction"})(s||(s={}));var p=class extends l.Extension.Internal{constructor(n){super();this.bitcoinConfig=n;this.name="bitcoin";this.config={};this.config={rpcUrl:n.rpcUrl,chainType:"BITCOIN",options:{network:n.network}}}signTransaction(n,t){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload(s.BitcoinSignTransaction,[n,t]))})}};module.exports=p;return d;})(); |
@@ -1,2 +0,2 @@ | ||
var t,n=require("@magic-sdk/commons");function o(t,n){return(o=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}!function(t){t.BitcoinSignTransaction="btc_signTransaction"}(t||(t={})),exports.BitcoinExtension=function(n){var r,i;function e(t){var o;return(o=n.call(this)||this).bitcoinConfig=void 0,o.name="bitcoin",o.config={},o.bitcoinConfig=t,o.config={rpcUrl:t.rpcUrl,chainType:"BITCOIN",options:{network:t.network}},o}return i=n,(r=e).prototype=Object.create(i.prototype),r.prototype.constructor=r,o(r,i),e.prototype.signTransaction=function(n,o){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.BitcoinSignTransaction,[n,o])))}catch(t){return Promise.reject(t)}},e}(n.Extension.Internal); | ||
var b=Object.create;var o=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var g=n=>o(n,"__esModule",{value:!0});var w=(n,i)=>{g(n);for(var t in i)o(n,t,{get:i[t],enumerable:!0})},C=(n,i,t)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of k(i))!B.call(n,r)&&r!=="default"&&o(n,r,{get:()=>i[r],enumerable:!(t=x(i,r))||t.enumerable});return n},I=n=>C(g(o(n!=null?b(y(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);var m=(n,i,t)=>new Promise((r,p)=>{var l=s=>{try{e(t.next(s))}catch(a){p(a)}},T=s=>{try{e(t.throw(s))}catch(a){p(a)}},e=s=>s.done?r(s.value):Promise.resolve(s.value).then(l,T);e((t=t.apply(n,i)).next())});w(exports,{BitcoinExtension:()=>f});var u=I(require("@magic-sdk/commons"));var c;(function(i){i.BitcoinSignTransaction="btc_signTransaction"})(c||(c={}));var f=class extends u.Extension.Internal{constructor(i){super();this.bitcoinConfig=i;this.name="bitcoin";this.config={};this.config={rpcUrl:i.rpcUrl,chainType:"BITCOIN",options:{network:i.network}}}signTransaction(i,t){return m(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload(c.BitcoinSignTransaction,[i,t]))})}}; | ||
//# sourceMappingURL=index.native.js.map |
import { BitcoinExtension } from './index'; | ||
export { BitcoinExtension as default }; | ||
export type { BitcoinExtension as default }; |
@@ -0,0 +0,0 @@ import { Extension } from '@magic-sdk/commons'; |
@@ -0,0 +0,0 @@ export interface BitcoinConfig { |
{ | ||
"name": "@magic-ext/bitcoin", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "magic bitcoin extension", | ||
@@ -14,3 +14,3 @@ "author": "Magic <team@magic.link> (https://magic.link/)", | ||
], | ||
"target": "web", | ||
"target": "neutral", | ||
"cdnGlobalName": "MagicBitcoinExtension", | ||
@@ -23,3 +23,3 @@ "main": "./dist/cjs/index.js", | ||
"exports": { | ||
"import": "./dist/modern/index.mjs", | ||
"import": "./dist/es/index.mjs", | ||
"require": "./dist/cjs/index.js" | ||
@@ -33,5 +33,5 @@ }, | ||
"devDependencies": { | ||
"@magic-sdk/commons": "^3.0.0" | ||
"@magic-sdk/commons": "^4.0.0" | ||
}, | ||
"gitHead": "a85f41892cbd7985ee1743764f7f905b89004eaa" | ||
"gitHead": "5a1afc093cfec98bdcfb232cb2878510014da70a" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14129
16
45