@onflow/util-address
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.1
@@ -0,1 +1,9 @@ | ||
# @onflow/util-address | ||
## 1.0.0-alpha.1 | ||
### Patch Changes | ||
- [#1164](https://github.com/onflow/fcl-js/pull/1164) [`11229868`](https://github.com/onflow/fcl-js/commit/11229868cf916d204901f8bb3f76ee234e9152a8) Thanks [@justinbarry](https://github.com/justinbarry)! - No longer minify released source code. | ||
## 1.0.0-alpha.0 | ||
@@ -2,0 +10,0 @@ |
@@ -1,2 +0,16 @@ | ||
function n(n){return null==n?null:n.replace(/^0x/,"").replace(/^Fx/,"")}function r(r){return null==r?null:"0x"+n(r)}exports.display=function(n){return r(n)},exports.sansPrefix=n,exports.withPrefix=r; | ||
function sansPrefix(address) { | ||
if (address == null) return null; | ||
return address.replace(/^0x/, "").replace(/^Fx/, ""); | ||
} | ||
function withPrefix(address) { | ||
if (address == null) return null; | ||
return "0x" + sansPrefix(address); | ||
} | ||
function display(address) { | ||
return withPrefix(address); | ||
} | ||
exports.display = display; | ||
exports.sansPrefix = sansPrefix; | ||
exports.withPrefix = withPrefix; | ||
//# sourceMappingURL=util-address.js.map |
@@ -1,2 +0,14 @@ | ||
function n(n){return null==n?null:n.replace(/^0x/,"").replace(/^Fx/,"")}function l(l){return null==l?null:"0x"+n(l)}function u(n){return l(n)}export{u as display,n as sansPrefix,l as withPrefix}; | ||
function sansPrefix(address) { | ||
if (address == null) return null; | ||
return address.replace(/^0x/, "").replace(/^Fx/, ""); | ||
} | ||
function withPrefix(address) { | ||
if (address == null) return null; | ||
return "0x" + sansPrefix(address); | ||
} | ||
function display(address) { | ||
return withPrefix(address); | ||
} | ||
export { display, sansPrefix, withPrefix }; | ||
//# sourceMappingURL=util-address.modern.js.map |
@@ -1,2 +0,14 @@ | ||
function n(n){return null==n?null:n.replace(/^0x/,"").replace(/^Fx/,"")}function l(l){return null==l?null:"0x"+n(l)}function u(n){return l(n)}export{u as display,n as sansPrefix,l as withPrefix}; | ||
function sansPrefix(address) { | ||
if (address == null) return null; | ||
return address.replace(/^0x/, "").replace(/^Fx/, ""); | ||
} | ||
function withPrefix(address) { | ||
if (address == null) return null; | ||
return "0x" + sansPrefix(address); | ||
} | ||
function display(address) { | ||
return withPrefix(address); | ||
} | ||
export { display, sansPrefix, withPrefix }; | ||
//# sourceMappingURL=util-address.module.js.map |
@@ -1,2 +0,23 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).utilAddress={})}(this,function(e){function n(e){return null==e?null:e.replace(/^0x/,"").replace(/^Fx/,"")}function t(e){return null==e?null:"0x"+n(e)}e.display=function(e){return t(e)},e.sansPrefix=n,e.withPrefix=t}); | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(global = global || self, factory(global.utilAddress = {})); | ||
}(this, (function (exports) { | ||
function sansPrefix(address) { | ||
if (address == null) return null; | ||
return address.replace(/^0x/, "").replace(/^Fx/, ""); | ||
} | ||
function withPrefix(address) { | ||
if (address == null) return null; | ||
return "0x" + sansPrefix(address); | ||
} | ||
function display(address) { | ||
return withPrefix(address); | ||
} | ||
exports.display = display; | ||
exports.sansPrefix = sansPrefix; | ||
exports.withPrefix = withPrefix; | ||
}))); | ||
//# sourceMappingURL=util-address.umd.js.map |
{ | ||
"name": "@onflow/util-address", | ||
"version": "1.0.0-alpha.0", | ||
"version": "1.0.0-alpha.1", | ||
"description": "Flow JS SDK Util -- Address", | ||
@@ -21,3 +21,3 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@onflow/types": "^1.0.0-alpha.0", | ||
"@onflow/types": "^1.0.0-alpha.1", | ||
"jest": "26.4.2", | ||
@@ -34,3 +34,3 @@ "jest-esm-transformer": "1.0.0", | ||
"test": "jest", | ||
"build": "microbundle", | ||
"build": "microbundle --no-compress", | ||
"test:watch": "jest --watch", | ||
@@ -37,0 +37,0 @@ "start": "microbundle watch" |
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
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
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
7788
78
0