@magic-ext/conflux
Advanced tools
Comparing version 0.1.1 to 1.0.0
@@ -0,1 +1,17 @@ | ||
# v1.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)) | ||
#### Authors: 1 | ||
- Ian K Smith ([@smithki](https://github.com/smithki)) | ||
--- | ||
# v0.1.1 (Mon Jan 24 2022) | ||
@@ -2,0 +18,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.ConfluxSendTransaction="cfx_sendTransaction"}(t||(t={})),exports.ConfluxExtension=function(n){var e,r;function a(t){var o;return(o=n.call(this)||this).confluxConfig=void 0,o.name="conflux",o.config={},o.confluxConfig=t,o.config={chainType:"CONFLUX",options:{rpcUrl:t.rpcUrl,chainId:t.chainId,defaultGasPrice:t.defaultGasPrice,defaultGasRatio:t.defaultGasRatio,defaultStorageRatio:t.defaultStorageRatio}},o}return r=n,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,o(e,r),a.prototype.sendTransaction=function(n){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.ConfluxSendTransaction,n)))}catch(t){return Promise.reject(t)}},a}(n.Extension.Internal); | ||
var x=Object.create;var s=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var l=t=>s(t,"__esModule",{value:!0});var y=(t,a)=>{l(t);for(var e in a)s(t,e,{get:a[e],enumerable:!0})},S=(t,a,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of g(a))!h.call(t,n)&&n!=="default"&&s(t,n,{get:()=>a[n],enumerable:!(e=b(a,n))||e.enumerable});return t},T=t=>S(l(s(t!=null?x(G(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var d=(t,a,e)=>new Promise((n,u)=>{var m=r=>{try{o(e.next(r))}catch(c){u(c)}},R=r=>{try{o(e.throw(r))}catch(c){u(c)}},o=r=>r.done?n(r.value):Promise.resolve(r.value).then(m,R);o((e=e.apply(t,a)).next())});y(exports,{ConfluxExtension:()=>p});var f=T(require("@magic-sdk/commons"));var i;(function(a){a.ConfluxSendTransaction="cfx_sendTransaction"})(i||(i={}));var p=class extends f.Extension.Internal{constructor(a){super();this.confluxConfig=a;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:a.rpcUrl,chainId:a.chainId,defaultGasPrice:a.defaultGasPrice,defaultGasRatio:a.defaultGasRatio,defaultStorageRatio:a.defaultStorageRatio}}}sendTransaction(a){return d(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload(i.ConfluxSendTransaction,a))})}}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import{Extension as t}from"@magic-sdk/commons";function o(t,n){return(o=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t})(t,n)}var n;!function(t){t.ConfluxSendTransaction="cfx_sendTransaction"}(n||(n={}));var r=function(t){var r,e;function a(o){var n;return(n=t.call(this)||this).confluxConfig=void 0,n.name="conflux",n.config={},n.confluxConfig=o,n.config={chainType:"CONFLUX",options:{rpcUrl:o.rpcUrl,chainId:o.chainId,defaultGasPrice:o.defaultGasPrice,defaultGasRatio:o.defaultGasRatio,defaultStorageRatio:o.defaultStorageRatio}},n}return e=t,(r=a).prototype=Object.create(e.prototype),r.prototype.constructor=r,o(r,e),a.prototype.sendTransaction=function(t){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(n.ConfluxSendTransaction,t)))}catch(t){return Promise.reject(t)}},a}(t.Internal);export{r as ConfluxExtension}; | ||
var c=(i,a,e)=>new Promise((u,o)=>{var l=t=>{try{r(e.next(t))}catch(s){o(s)}},d=t=>{try{r(e.throw(t))}catch(s){o(s)}},r=t=>t.done?u(t.value):Promise.resolve(t.value).then(l,d);r((e=e.apply(i,a)).next())});import{Extension as f}from"@magic-sdk/commons";var n;(function(a){a.ConfluxSendTransaction="cfx_sendTransaction"})(n||(n={}));var p=class extends f.Internal{constructor(a){super();this.confluxConfig=a;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:a.rpcUrl,chainId:a.chainId,defaultGasPrice:a.defaultGasPrice,defaultGasRatio:a.defaultGasRatio,defaultStorageRatio:a.defaultStorageRatio}}}sendTransaction(a){return c(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload(n.ConfluxSendTransaction,a))})}};export{p as ConfluxExtension}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
var MagicConfluxExtension=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.ConfluxSendTransaction="cfx_sendTransaction"}(o||(o={})),function(t){var e,r;function a(n){var o;return(o=t.call(this)||this).confluxConfig=void 0,o.name="conflux",o.config={},o.confluxConfig=n,o.config={chainType:"CONFLUX",options:{rpcUrl:n.rpcUrl,chainId:n.chainId,defaultGasPrice:n.defaultGasPrice,defaultGasRatio:n.defaultGasRatio,defaultStorageRatio:n.defaultStorageRatio}},o}return r=t,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,n(e,r),a.prototype.sendTransaction=function(t){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(o.ConfluxSendTransaction,t)))}catch(t){return Promise.reject(t)}},a}(t.Extension.Internal)}(Magic); | ||
var MagicConfluxExtension=(()=>{var b=Object.create;var s=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty;var f=t=>s(t,"__esModule",{value:!0});var T=(t,a)=>()=>(a||t((a={exports:{}}).exports,a),a.exports),C=(t,a)=>{f(t);for(var e in a)s(t,e,{get:a[e],enumerable:!0})},I=(t,a,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of h(a))!S.call(t,n)&&n!=="default"&&s(t,n,{get:()=>a[n],enumerable:!(e=G(a,n))||e.enumerable});return t},U=t=>I(f(s(t!=null?b(y(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var p=(t,a,e)=>new Promise((n,l)=>{var R=r=>{try{o(e.next(r))}catch(c){l(c)}},g=r=>{try{o(e.throw(r))}catch(c){l(c)}},o=r=>r.done?n(r.value):Promise.resolve(r.value).then(R,g);o((e=e.apply(t,a)).next())});var m=T((P,d)=>{d.exports=Magic});var q={};C(q,{default:()=>u});var x=U(m());var i;(function(a){a.ConfluxSendTransaction="cfx_sendTransaction"})(i||(i={}));var u=class extends x.Extension.Internal{constructor(a){super();this.confluxConfig=a;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:a.rpcUrl,chainId:a.chainId,defaultGasPrice:a.defaultGasPrice,defaultGasRatio:a.defaultGasRatio,defaultStorageRatio:a.defaultStorageRatio}}}sendTransaction(a){return p(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload(i.ConfluxSendTransaction,a))})}};return q;})(); |
@@ -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.ConfluxSendTransaction="cfx_sendTransaction"}(t||(t={})),exports.ConfluxExtension=function(n){var e,r;function a(t){var o;return(o=n.call(this)||this).confluxConfig=void 0,o.name="conflux",o.config={},o.confluxConfig=t,o.config={chainType:"CONFLUX",options:{rpcUrl:t.rpcUrl,chainId:t.chainId,defaultGasPrice:t.defaultGasPrice,defaultGasRatio:t.defaultGasRatio,defaultStorageRatio:t.defaultStorageRatio}},o}return r=n,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,o(e,r),a.prototype.sendTransaction=function(n){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.ConfluxSendTransaction,n)))}catch(t){return Promise.reject(t)}},a}(n.Extension.Internal); | ||
var x=Object.create;var s=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var l=t=>s(t,"__esModule",{value:!0});var y=(t,a)=>{l(t);for(var e in a)s(t,e,{get:a[e],enumerable:!0})},S=(t,a,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of g(a))!h.call(t,n)&&n!=="default"&&s(t,n,{get:()=>a[n],enumerable:!(e=b(a,n))||e.enumerable});return t},T=t=>S(l(s(t!=null?x(G(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var d=(t,a,e)=>new Promise((n,u)=>{var m=r=>{try{o(e.next(r))}catch(c){u(c)}},R=r=>{try{o(e.throw(r))}catch(c){u(c)}},o=r=>r.done?n(r.value):Promise.resolve(r.value).then(m,R);o((e=e.apply(t,a)).next())});y(exports,{ConfluxExtension:()=>p});var f=T(require("@magic-sdk/commons"));var i;(function(a){a.ConfluxSendTransaction="cfx_sendTransaction"})(i||(i={}));var p=class extends f.Extension.Internal{constructor(a){super();this.confluxConfig=a;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:a.rpcUrl,chainId:a.chainId,defaultGasPrice:a.defaultGasPrice,defaultGasRatio:a.defaultGasRatio,defaultStorageRatio:a.defaultStorageRatio}}}sendTransaction(a){return d(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload(i.ConfluxSendTransaction,a))})}}; | ||
//# sourceMappingURL=index.native.js.map |
import { ConfluxExtension } from './index'; | ||
export { ConfluxExtension as default }; |
@@ -0,0 +0,0 @@ import { Extension } from '@magic-sdk/commons'; |
@@ -0,0 +0,0 @@ export interface ConfluxConfig { |
{ | ||
"name": "@magic-ext/conflux", | ||
"version": "0.1.1", | ||
"version": "1.0.0", | ||
"description": "magic conflux extension", | ||
@@ -14,3 +14,3 @@ "author": "Magic <team@magic.link> (https://magic.link/)", | ||
], | ||
"target": "web", | ||
"target": "neutral", | ||
"cdnGlobalName": "MagicConfluxExtension", | ||
@@ -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": "21f089a78d37af87fb45b71e12374bc6db6ce80d" | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
15578
16
52
3
0