Comparing version 7.0.19 to 7.0.20
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.S3Error = exports.InvalidXMLError = exports.IncorrectSizeError = exports.InvalidBucketPolicyError = exports.InvalidPrefixError = exports.InvalidDateError = exports.ExpiresParamError = exports.SecretKeyRequiredError = exports.AccessKeyRequiredError = exports.InvalidObjectNameError = exports.InvalidBucketNameError = exports.InvalidEndpointError = exports.InvalidPortError = exports.InvalidArgumentError = exports.AnonymousRequestError = void 0; | ||
exports.SecretKeyRequiredError = exports.S3Error = exports.InvalidXMLError = exports.InvalidPrefixError = exports.InvalidPortError = exports.InvalidObjectNameError = exports.InvalidEndpointError = exports.InvalidDateError = exports.InvalidBucketPolicyError = exports.InvalidBucketNameError = exports.InvalidArgumentError = exports.IncorrectSizeError = exports.ExpiresParamError = exports.AnonymousRequestError = exports.AccessKeyRequiredError = void 0; | ||
@@ -9,0 +9,0 @@ var _es6Error = _interopRequireDefault(require("es6-error")); |
@@ -6,37 +6,38 @@ "use strict"; | ||
}); | ||
exports.promisify = promisify; | ||
exports.uriEscape = uriEscape; | ||
exports.uriResourceEscape = uriResourceEscape; | ||
exports.RETENTION_VALIDITY_UNITS = exports.RETENTION_MODES = exports.LEGAL_HOLD_STATUS = void 0; | ||
exports.extractMetadata = extractMetadata; | ||
exports.getScope = getScope; | ||
exports.getVersionId = getVersionId; | ||
exports.insertContentType = insertContentType; | ||
exports.isAmazonEndpoint = isAmazonEndpoint; | ||
exports.isVirtualHostStyle = isVirtualHostStyle; | ||
exports.isValidIP = isValidIP; | ||
exports.isValidEndpoint = isValidEndpoint; | ||
exports.isValidDomain = isValidDomain; | ||
exports.probeContentType = probeContentType; | ||
exports.isValidPort = isValidPort; | ||
exports.isValidBucketName = isValidBucketName; | ||
exports.isValidObjectName = isValidObjectName; | ||
exports.isValidPrefix = isValidPrefix; | ||
exports.isAmzHeader = isAmzHeader; | ||
exports.isArray = isArray; | ||
exports.isBoolean = isBoolean; | ||
exports.isFunction = isFunction; | ||
exports.isNumber = isNumber; | ||
exports.isFunction = isFunction; | ||
exports.isString = isString; | ||
exports.isObject = isObject; | ||
exports.isReadableStream = isReadableStream; | ||
exports.isBoolean = isBoolean; | ||
exports.isArray = isArray; | ||
exports.isStorageclassHeader = isStorageclassHeader; | ||
exports.isString = isString; | ||
exports.isSupportedHeader = isSupportedHeader; | ||
exports.isValidBucketName = isValidBucketName; | ||
exports.isValidDate = isValidDate; | ||
exports.isValidDomain = isValidDomain; | ||
exports.isValidEndpoint = isValidEndpoint; | ||
exports.isValidIP = isValidIP; | ||
exports.isValidObjectName = isValidObjectName; | ||
exports.isValidPort = isValidPort; | ||
exports.isValidPrefix = isValidPrefix; | ||
exports.isVirtualHostStyle = isVirtualHostStyle; | ||
exports.makeDateLong = makeDateLong; | ||
exports.makeDateShort = makeDateShort; | ||
exports.pipesetup = pipesetup; | ||
exports.prependXAMZMeta = prependXAMZMeta; | ||
exports.probeContentType = probeContentType; | ||
exports.promisify = promisify; | ||
exports.readableStream = readableStream; | ||
exports.insertContentType = insertContentType; | ||
exports.prependXAMZMeta = prependXAMZMeta; | ||
exports.isAmzHeader = isAmzHeader; | ||
exports.isSupportedHeader = isSupportedHeader; | ||
exports.isStorageclassHeader = isStorageclassHeader; | ||
exports.extractMetadata = extractMetadata; | ||
exports.getVersionId = getVersionId; | ||
exports.sanitizeETag = sanitizeETag; | ||
exports.toSha256 = exports.toMd5 = exports.LEGAL_HOLD_STATUS = exports.RETENTION_VALIDITY_UNITS = exports.RETENTION_MODES = void 0; | ||
exports.toSha256 = exports.toMd5 = void 0; | ||
exports.uriEscape = uriEscape; | ||
exports.uriResourceEscape = uriResourceEscape; | ||
@@ -64,3 +65,5 @@ var _stream = _interopRequireDefault(require("stream")); | ||
*/ | ||
var Crypto = require('crypto'); // Returns a wrapper function that will promisify a given callback function. | ||
var Crypto = require('crypto'); | ||
var ipaddr = require('ipaddr.js'); // Returns a wrapper function that will promisify a given callback function. | ||
// It will preserve 'this'. | ||
@@ -145,6 +148,4 @@ | ||
var ipv4Regex = /^(\d{1,3}\.){3,3}\d{1,3}$/; | ||
function isValidIP(ip) { | ||
return ipv4Regex.test(ip); | ||
return ipaddr.isValid(ip); | ||
} // isValidEndpoint - true if endpoint is valid domain. | ||
@@ -151,0 +152,0 @@ |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.NotificationPoller = exports.ObjectReducedRedundancyLostObject = exports.ObjectRemovedDeleteMarkerCreated = exports.ObjectRemovedDelete = exports.ObjectRemovedAll = exports.ObjectCreatedCompleteMultipartUpload = exports.ObjectCreatedCopy = exports.ObjectCreatedPost = exports.ObjectCreatedPut = exports.ObjectCreatedAll = exports.buildARN = exports.CloudFunctionConfig = exports.QueueConfig = exports.TopicConfig = exports.NotificationConfig = void 0; | ||
exports.buildARN = exports.TopicConfig = exports.QueueConfig = exports.ObjectRemovedDeleteMarkerCreated = exports.ObjectRemovedDelete = exports.ObjectRemovedAll = exports.ObjectReducedRedundancyLostObject = exports.ObjectCreatedPut = exports.ObjectCreatedPost = exports.ObjectCreatedCopy = exports.ObjectCreatedCompleteMultipartUpload = exports.ObjectCreatedAll = exports.NotificationPoller = exports.NotificationConfig = exports.CloudFunctionConfig = void 0; | ||
@@ -284,2 +284,3 @@ var _events = require("events"); | ||
var region = this.client.region || 'us-east-1'; | ||
this.client.makeRequest({ | ||
@@ -289,3 +290,3 @@ method, | ||
query | ||
}, '', 200, '', true, function (e, response) { | ||
}, '', 200, region, true, function (e, response) { | ||
if (e) return _this6.emit('error', e); | ||
@@ -292,0 +293,0 @@ var transformer = transformers.getNotificationTransformer(); |
@@ -7,4 +7,4 @@ "use strict"; | ||
exports.postPresignSignatureV4 = postPresignSignatureV4; | ||
exports.presignSignatureV4 = presignSignatureV4; | ||
exports.signV4 = signV4; | ||
exports.presignSignatureV4 = presignSignatureV4; | ||
@@ -11,0 +11,0 @@ var _crypto = _interopRequireDefault(require("crypto")); |
@@ -6,25 +6,25 @@ "use strict"; | ||
}); | ||
exports.bucketEncryptionTransformer = bucketEncryptionTransformer; | ||
exports.bucketVersioningTransformer = bucketVersioningTransformer; | ||
exports.getBucketNotificationTransformer = getBucketNotificationTransformer; | ||
exports.getBucketRegionTransformer = getBucketRegionTransformer; | ||
exports.getCompleteMultipartTransformer = getCompleteMultipartTransformer; | ||
exports.getConcater = getConcater; | ||
exports.getCopyObjectTransformer = getCopyObjectTransformer; | ||
exports.getErrorTransformer = getErrorTransformer; | ||
exports.getHashSummer = getHashSummer; | ||
exports.getCopyObjectTransformer = getCopyObjectTransformer; | ||
exports.getInitiateMultipartTransformer = getInitiateMultipartTransformer; | ||
exports.getListBucketTransformer = getListBucketTransformer; | ||
exports.getListMultipartTransformer = getListMultipartTransformer; | ||
exports.getListPartsTransformer = getListPartsTransformer; | ||
exports.getInitiateMultipartTransformer = getInitiateMultipartTransformer; | ||
exports.getListObjectsTransformer = getListObjectsTransformer; | ||
exports.getListObjectsV2Transformer = getListObjectsV2Transformer; | ||
exports.getListObjectsV2WithMetadataTransformer = getListObjectsV2WithMetadataTransformer; | ||
exports.getCompleteMultipartTransformer = getCompleteMultipartTransformer; | ||
exports.getBucketRegionTransformer = getBucketRegionTransformer; | ||
exports.getBucketNotificationTransformer = getBucketNotificationTransformer; | ||
exports.getListPartsTransformer = getListPartsTransformer; | ||
exports.getNotificationTransformer = getNotificationTransformer; | ||
exports.bucketVersioningTransformer = bucketVersioningTransformer; | ||
exports.getTagsTransformer = getTagsTransformer; | ||
exports.lifecycleTransformer = lifecycleTransformer; | ||
exports.objectLegalHoldTransformer = objectLegalHoldTransformer; | ||
exports.objectLockTransformer = objectLockTransformer; | ||
exports.objectRetentionTransformer = objectRetentionTransformer; | ||
exports.bucketEncryptionTransformer = bucketEncryptionTransformer; | ||
exports.replicationConfigTransformer = replicationConfigTransformer; | ||
exports.objectLegalHoldTransformer = objectLegalHoldTransformer; | ||
@@ -31,0 +31,0 @@ var xmlParsers = _interopRequireWildcard(require("./xml-parsers.js")); |
@@ -6,22 +6,22 @@ "use strict"; | ||
}); | ||
exports.parseError = parseError; | ||
exports.parseCopyObject = parseCopyObject; | ||
exports.parseListMultipart = parseListMultipart; | ||
exports.parseListBucket = parseListBucket; | ||
exports.parseBucketEncryptionConfig = parseBucketEncryptionConfig; | ||
exports.parseBucketNotification = parseBucketNotification; | ||
exports.parseBucketRegion = parseBucketRegion; | ||
exports.parseListParts = parseListParts; | ||
exports.parseBucketVersioningConfig = parseBucketVersioningConfig; | ||
exports.parseCompleteMultipart = parseCompleteMultipart; | ||
exports.parseCopyObject = parseCopyObject; | ||
exports.parseError = parseError; | ||
exports.parseInitiateMultipart = parseInitiateMultipart; | ||
exports.parseCompleteMultipart = parseCompleteMultipart; | ||
exports.parseLifecycleConfig = parseLifecycleConfig; | ||
exports.parseListBucket = parseListBucket; | ||
exports.parseListMultipart = parseListMultipart; | ||
exports.parseListObjects = parseListObjects; | ||
exports.parseListObjectsV2 = parseListObjectsV2; | ||
exports.parseListObjectsV2WithMetadata = parseListObjectsV2WithMetadata; | ||
exports.parseBucketVersioningConfig = parseBucketVersioningConfig; | ||
exports.parseTagging = parseTagging; | ||
exports.parseLifecycleConfig = parseLifecycleConfig; | ||
exports.parseListParts = parseListParts; | ||
exports.parseObjectLegalHoldConfig = parseObjectLegalHoldConfig; | ||
exports.parseObjectLockConfig = parseObjectLockConfig; | ||
exports.parseObjectRetentionConfig = parseObjectRetentionConfig; | ||
exports.parseBucketEncryptionConfig = parseBucketEncryptionConfig; | ||
exports.parseReplicationConfig = parseReplicationConfig; | ||
exports.parseObjectLegalHoldConfig = parseObjectLegalHoldConfig; | ||
exports.parseTagging = parseTagging; | ||
@@ -28,0 +28,0 @@ var _fastXmlParser = _interopRequireDefault(require("fast-xml-parser")); |
{ | ||
"name": "minio", | ||
"version": "7.0.19", | ||
"version": "7.0.20", | ||
"description": "S3 Compatible Cloud Storage client", | ||
@@ -38,2 +38,3 @@ "main": "./dist/main/minio.js", | ||
"fast-xml-parser": "^3.17.5", | ||
"ipaddr.js": "^2.0.1", | ||
"json-stream": "^1.0.0", | ||
@@ -40,0 +41,0 @@ "lodash": "^4.17.21", |
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
284999
5641
14
+ Addedipaddr.js@^2.0.1
+ Addedipaddr.js@2.2.0(transitive)