@onflow/util-address
Advanced tools
Comparing version 1.0.1 to 1.0.2-alpha.0
# @onflow/util-address | ||
## 1.0.2-alpha.0 | ||
### Patch Changes | ||
- [#1227](https://github.com/onflow/fcl-js/pull/1227) [`352f1460`](https://github.com/onflow/fcl-js/commit/352f1460a2f34d228a74fa4bbc6fcf6e68a968b6) Thanks [@jribbink](https://github.com/jribbink)! - Switch to fcl-bundle instead of microbundle for build scripts | ||
## 1.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -0,1 +1,5 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function sansPrefix(address) { | ||
@@ -2,0 +6,0 @@ if (address == null) return null; |
(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) { | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["onflowUtil-address"] = {})); | ||
})(this, (function (exports) { 'use strict'; | ||
function sansPrefix(address) { | ||
@@ -22,3 +23,5 @@ if (address == null) return null; | ||
}))); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
})); | ||
//# sourceMappingURL=util-address.umd.js.map |
{ | ||
"name": "@onflow/util-address", | ||
"version": "1.0.1", | ||
"version": "1.0.2-alpha.0", | ||
"description": "Flow JS SDK Util -- Address", | ||
@@ -21,6 +21,6 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@onflow/types": "^1.0.1", | ||
"@onflow/fcl-bundle": "^1.0.1-alpha.0", | ||
"@onflow/types": "^1.0.3-alpha.0", | ||
"jest": "26.4.2", | ||
"jest-esm-transformer": "1.0.0", | ||
"microbundle": "0.12.4" | ||
"jest-esm-transformer": "1.0.0" | ||
}, | ||
@@ -34,6 +34,9 @@ "source": "src/index.js", | ||
"test": "jest", | ||
"build": "microbundle --no-compress", | ||
"build": "fcl-bundle", | ||
"test:watch": "jest --watch", | ||
"start": "microbundle watch --no-compress" | ||
"start": "fcl-bundle --watch" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.18.6" | ||
} | ||
} |
export function sansPrefix(address) { | ||
if (address == null) return null | ||
return address | ||
.replace(/^0x/, "") | ||
.replace(/^Fx/, "") | ||
return address.replace(/^0x/, "").replace(/^Fx/, "") | ||
} | ||
@@ -7,0 +5,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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
8363
1
11
66
1
+ Added@babel/runtime@^7.18.6
+ Added@babel/runtime@7.26.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)