From 406c2cd591f6208d43e0264e1b13acd25c225123 Mon Sep 17 00:00:00 2001 From: Bogdan Finn Date: Sat, 8 Apr 2023 22:51:59 +0200 Subject: [PATCH] updated examples; --- cffi_dist/example_node/index.js | 2 +- cffi_dist/example_node/index_async.js | 2 +- cffi_dist/example_node/index_custom_client.js | 2 +- cffi_dist/example_node/index_image.js | 2 +- cffi_dist/example_node/index_image_upload.js | 2 +- cffi_dist/example_node/index_post.js | 2 +- cffi_dist/example_python/example.py | 2 +- cffi_dist/example_python/example_custom_client.py | 2 +- cffi_dist/example_python/example_image.py | 2 +- cffi_dist/example_python/example_image_upload.py | 2 +- cffi_dist/example_python/example_post.py | 2 +- cffi_dist/example_typescript/src/client.ts | 6 +++--- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cffi_dist/example_node/index.js b/cffi_dist/example_node/index.js index 54f0baa..72466e9 100644 --- a/cffi_dist/example_node/index.js +++ b/cffi_dist/example_node/index.js @@ -1,7 +1,7 @@ const ffi = require('ffi-napi'); // load the tls-client shared package for your OS you are currently running your nodejs script (i'm running on mac) -const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.8.dylib', { +const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.9.dylib', { 'request': ['string', ['string']], 'getCookiesFromSession': ['string', ['string']], 'addCookiesToSession': ['string', ['string']], diff --git a/cffi_dist/example_node/index_async.js b/cffi_dist/example_node/index_async.js index e3363a1..b293182 100644 --- a/cffi_dist/example_node/index_async.js +++ b/cffi_dist/example_node/index_async.js @@ -1,7 +1,7 @@ const ffi = require('ffi-napi'); // load the tls-client shared package for your OS you are currently running your nodejs script (i'm running on mac) -const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.8.dylib', { +const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.9.dylib', { 'request': ['string', ['string']], 'getCookiesFromSession': ['string', ['string']], 'addCookiesToSession': ['string', ['string']], diff --git a/cffi_dist/example_node/index_custom_client.js b/cffi_dist/example_node/index_custom_client.js index e680d7a..d61b387 100644 --- a/cffi_dist/example_node/index_custom_client.js +++ b/cffi_dist/example_node/index_custom_client.js @@ -1,7 +1,7 @@ const ffi = require('ffi-napi'); // load the tls-client shared package for your OS you are currently running your nodejs script (i'm running on mac) -const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.8.dylib', { +const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.9.dylib', { 'request': ['string', ['string']], 'getCookiesFromSession': ['string', ['string']], 'addCookiesToSession': ['string', ['string']], diff --git a/cffi_dist/example_node/index_image.js b/cffi_dist/example_node/index_image.js index bc38984..bf8b518 100644 --- a/cffi_dist/example_node/index_image.js +++ b/cffi_dist/example_node/index_image.js @@ -2,7 +2,7 @@ const ffi = require('ffi-napi'); const fs = require("fs") // load the tls-client shared package for your OS you are currently running your nodejs script (i'm running on mac) -const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.8.dylib', { +const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.9.dylib', { 'request': ['string', ['string']], 'getCookiesFromSession': ['string', ['string']], 'addCookiesToSession': ['string', ['string']], diff --git a/cffi_dist/example_node/index_image_upload.js b/cffi_dist/example_node/index_image_upload.js index 7563e9f..6fc2f4f 100644 --- a/cffi_dist/example_node/index_image_upload.js +++ b/cffi_dist/example_node/index_image_upload.js @@ -2,7 +2,7 @@ const ffi = require('ffi-napi'); const fs = require("fs") // load the tls-client shared package for your OS you are currently running your nodejs script (i'm running on mac) -const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.8.dylib', { +const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.9.dylib', { 'request': ['string', ['string']], 'getCookiesFromSession': ['string', ['string']], 'addCookiesToSession': ['string', ['string']], diff --git a/cffi_dist/example_node/index_post.js b/cffi_dist/example_node/index_post.js index 386d7c9..5dce917 100644 --- a/cffi_dist/example_node/index_post.js +++ b/cffi_dist/example_node/index_post.js @@ -1,7 +1,7 @@ const ffi = require('ffi-napi'); // load the tls-client shared package for your OS you are currently running your nodejs script (i'm running on mac) -const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.8.dylib', { +const tlsClientLibrary = ffi.Library('./../dist/tls-client-darwin-amd64-1.3.9.dylib', { 'request': ['string', ['string']], 'getCookiesFromSession': ['string', ['string']], 'addCookiesToSession': ['string', ['string']], diff --git a/cffi_dist/example_python/example.py b/cffi_dist/example_python/example.py index 8ca6277..b16a356 100644 --- a/cffi_dist/example_python/example.py +++ b/cffi_dist/example_python/example.py @@ -2,7 +2,7 @@ import json # load the tls-client shared package for your OS you are currently running your python script (i'm running on mac) -library = ctypes.cdll.LoadLibrary('./../dist/tls-client-darwin-amd64-1.3.8.dylib') +library = ctypes.cdll.LoadLibrary('./../dist/tls-client-darwin-amd64-1.3.9.dylib') # extract the exposed request function from the shared package request = library.request diff --git a/cffi_dist/example_python/example_custom_client.py b/cffi_dist/example_python/example_custom_client.py index dcef196..5bd6668 100644 --- a/cffi_dist/example_python/example_custom_client.py +++ b/cffi_dist/example_python/example_custom_client.py @@ -2,7 +2,7 @@ import json # load the tls-client shared package for your OS you are currently running your python script (i'm running on mac) -library = ctypes.cdll.LoadLibrary('./../dist/tls-client-darwin-amd64-1.3.8.dylib') +library = ctypes.cdll.LoadLibrary('./../dist/tls-client-darwin-amd64-1.3.9.dylib') # extract the exposed request function from the shared package request = library.request diff --git a/cffi_dist/example_python/example_image.py b/cffi_dist/example_python/example_image.py index ee01900..2c1b573 100644 --- a/cffi_dist/example_python/example_image.py +++ b/cffi_dist/example_python/example_image.py @@ -4,7 +4,7 @@ import re # load the tls-client shared package for your OS you are currently running your python script (i'm running on mac) -library = ctypes.cdll.LoadLibrary('./../dist/tls-client-darwin-amd64-1.3.8.dylib') +library = ctypes.cdll.LoadLibrary('./../dist/tls-client-darwin-amd64-1.3.9.dylib') # extract the exposed request function from the shared package request = library.request diff --git a/cffi_dist/example_python/example_image_upload.py b/cffi_dist/example_python/example_image_upload.py index f8cec88..67cd7f5 100644 --- a/cffi_dist/example_python/example_image_upload.py +++ b/cffi_dist/example_python/example_image_upload.py @@ -3,7 +3,7 @@ import base64 # load the tls-client shared package for your OS you are currently running your python script (i'm running on mac) -library = ctypes.cdll.LoadLibrary('./../dist/tls-client-darwin-amd64-1.3.8.dylib') +library = ctypes.cdll.LoadLibrary('./../dist/tls-client-darwin-amd64-1.3.9.dylib') # extract the exposed request function from the shared package request = library.request diff --git a/cffi_dist/example_python/example_post.py b/cffi_dist/example_python/example_post.py index 5ed6301..af2dbf1 100644 --- a/cffi_dist/example_python/example_post.py +++ b/cffi_dist/example_python/example_post.py @@ -4,7 +4,7 @@ import re # load the tls-client shared package for your OS you are currently running your python script (i'm running on mac) -library = ctypes.cdll.LoadLibrary('./../dist/tls-client-darwin-amd64-1.3.8.dylib') +library = ctypes.cdll.LoadLibrary('./../dist/tls-client-darwin-amd64-1.3.9.dylib') # extract the exposed request function from the shared package request = library.request diff --git a/cffi_dist/example_typescript/src/client.ts b/cffi_dist/example_typescript/src/client.ts index 305fe60..b2bfacd 100644 --- a/cffi_dist/example_typescript/src/client.ts +++ b/cffi_dist/example_typescript/src/client.ts @@ -66,10 +66,10 @@ export class TLSClient implements TLSClientInstance { const createWrapper = (): LibraryObject => { const sharedLibraryPath = join(__dirname, './../../dist/'); const sharedLibraryFilename = platform() === 'win32' - ? `tls-client-windows-64-1.3.8.dll` + ? `tls-client-windows-64-1.3.9.dll` : arch() === 'arm64' - ? `tls-client-darwin-arm64-1.3.8.dylib` - : `tls-client-darwin-amd64-1.3.8.dylib`; + ? `tls-client-darwin-arm64-1.3.9.dylib` + : `tls-client-darwin-amd64-1.3.9.dylib`; return Library(join(sharedLibraryPath, sharedLibraryFilename), { request: ['string', ['string']],