From 9ad81048ced2fad74734433707a81a6d131cc0e3 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 21 Apr 2021 22:37:23 +0530 Subject: [PATCH] Use shivammathur/extensions for memcache and memcached on darwin --- __tests__/extensions.test.ts | 4 +++- dist/index.js | 2 +- src/extensions.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/__tests__/extensions.test.ts b/__tests__/extensions.test.ts index 58463ef3..5003173a 100644 --- a/__tests__/extensions.test.ts +++ b/__tests__/extensions.test.ts @@ -160,7 +160,7 @@ describe('Extension tests', () => { it('checking addExtensionOnDarwin', async () => { let darwin: string = await extensions.addExtension( - 'amqp, apcu, Xdebug, pcov, grpc, igbinary, imagick, imap, msgpack, phalcon3, phalcon4, protobuf, psr, redis, swoole, sqlite, oci8, pdo_oci, :intl, ast-beta, grpc-1.2.3', + 'amqp, apcu, Xdebug, pcov, grpc, igbinary, imagick, imap, memcache, memcached, msgpack, phalcon3, phalcon4, protobuf, psr, redis, swoole, sqlite, oci8, pdo_oci, :intl, ast-beta, grpc-1.2.3', '7.2', 'darwin' ); @@ -172,6 +172,8 @@ describe('Extension tests', () => { expect(darwin).toContain('add_brew_extension igbinary extension'); expect(darwin).toContain('add_brew_extension imagick extension'); expect(darwin).toContain('add_brew_extension imap extension'); + expect(darwin).toContain('add_brew_extension memcache extension'); + expect(darwin).toContain('add_brew_extension memcached extension'); expect(darwin).toContain('add_brew_extension msgpack extension'); expect(darwin).toContain('add_brew_extension phalcon3 extension'); expect(darwin).toContain('add_brew_extension phalcon4 extension'); diff --git a/dist/index.js b/dist/index.js index 84c7ea93..4ea0b338 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1839,7 +1839,7 @@ async function addExtensionDarwin(extension_csv, version) { // match 5.6 and newer - amqp, apcu, grpc, igbinary, imagick, imap, msgpack, protobuf, raphf, redis, swoole, xdebug, xdebug2, zmq // match 7.1 and newer - pcov // match 5.6 to 7.4 - propro - case /(?