Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@f5devcentral/atg-shared-utilities

Package Overview
Dependencies
Maintainers
17
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@f5devcentral/atg-shared-utilities - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

src/ipUtils.js

8

CHANGELOG.md

@@ -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

2

index.js

@@ -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,

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc