Skip to content

Commit

Permalink
updated examples;
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanfinn committed Apr 8, 2023
1 parent 72a638e commit 406c2cd
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cffi_dist/example_node/index.js
Original file line number Diff line number Diff line change
@@ -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']],
Expand Down
2 changes: 1 addition & 1 deletion cffi_dist/example_node/index_async.js
Original file line number Diff line number Diff line change
@@ -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']],
Expand Down
2 changes: 1 addition & 1 deletion cffi_dist/example_node/index_custom_client.js
Original file line number Diff line number Diff line change
@@ -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']],
Expand Down
2 changes: 1 addition & 1 deletion cffi_dist/example_node/index_image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']],
Expand Down
2 changes: 1 addition & 1 deletion cffi_dist/example_node/index_image_upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']],
Expand Down
2 changes: 1 addition & 1 deletion cffi_dist/example_node/index_post.js
Original file line number Diff line number Diff line change
@@ -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']],
Expand Down
2 changes: 1 addition & 1 deletion cffi_dist/example_python/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cffi_dist/example_python/example_custom_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cffi_dist/example_python/example_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cffi_dist/example_python/example_image_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cffi_dist/example_python/example_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cffi_dist/example_typescript/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ export class TLSClient implements TLSClientInstance {
const createWrapper = (): LibraryObject<never> => {
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']],
Expand Down

0 comments on commit 406c2cd

Please sign in to comment.