@f5devcentral/atg-shared-utilities
Advanced tools
Comparing version 0.2.3 to 0.3.0
@@ -15,2 +15,10 @@ # Changelog | ||
## [0.3.0] - 2021-11-15 | ||
### Added | ||
- Add ipUtil code | ||
## [0.2.4] | ||
### Changed | ||
- Update packages | ||
## [0.2.3] - 2021-11-02 | ||
@@ -17,0 +25,0 @@ ### Added |
@@ -20,2 +20,3 @@ /** | ||
const arrayUtils = require('./src/arrayUtils'); | ||
const ipUtils = require('./src/ipUtils'); | ||
const promiseUtils = require('./src/promiseUtils'); | ||
@@ -27,2 +28,3 @@ const secureVault = require('./src/secureVault'); | ||
arrayUtils, | ||
ipUtils, | ||
promiseUtils, | ||
@@ -29,0 +31,0 @@ secureVault, |
{ | ||
"name": "@f5devcentral/atg-shared-utilities", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"scripts": { | ||
@@ -10,7 +10,7 @@ "lint": "eslint .", | ||
"devDependencies": { | ||
"@f5devcentral/eslint-config-f5-atg": "^0.1.4", | ||
"@f5devcentral/eslint-config-f5-atg": "^0.1.5", | ||
"chai": "^4.3.4", | ||
"chai-as-promised": "^7.1.1", | ||
"eslint": "^7.32.0", | ||
"eslint-plugin-import": "^2.24.2", | ||
"eslint-plugin-import": "^2.25.3", | ||
"mocha": "^9.1.3", | ||
@@ -17,0 +17,0 @@ "nock": "10.0.0", |
@@ -9,2 +9,30 @@ # atg-shared-utilities | ||
## ipUtils | ||
These utilities will assist in IP address calculations | ||
### minimizeIP(ip) | ||
Minimize zeroes in the string representation of an F5 IPv4/6 address | ||
### isIPv4(ip) | ||
Checks if an address is IPv4 | ||
### isIPv6(ip) | ||
Checks if an address is IPv6 | ||
### splitAddress(address) | ||
Splits an IPv4 or IPv6 address into an address and port pair | ||
### getCidrFromNetmask(netmask, noSlash) | ||
Returns the CIDR for the given netmask. Optionally returns CIDR without a leading '/' | ||
### parseIpAddress(address) | ||
Parses an IP address into its components: IP, route domain, CIRD, netmask, IP with route | ||
## promiseUtils | ||
@@ -36,3 +64,3 @@ | ||
This will run the function fn with the arguments args, up to a number of times equal to options.retries, or until a resolve. | ||
This will run the function fn with the arguments args, up to a number of times equal to options.retries, or until a resolve. | ||
@@ -39,0 +67,0 @@ ## arrayUtils |
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
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
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
111914
20
2300
146