Skip to content

Commit

Permalink
Expose Typesense in window
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbosco committed Apr 5, 2024
1 parent d6a10a3 commit 8b9ed0e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
2 changes: 2 additions & 0 deletions dist/typesense.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/typesense.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js.map

Large diffs are not rendered by default.

21 changes: 11 additions & 10 deletions doc/examples/browser/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ <h1>Typesense Browser Demo</h1>
'port': '8108',
'protocol': 'http'
},
{
'host': 'localhost',
'port': '7108',
'protocol': 'http'
},
{
'host': 'localhost',
'port': '9108',
'protocol': 'http'
}],
// {
// 'host': 'localhost',
// 'port': '7108',
// 'protocol': 'http'
// },
// {
// 'host': 'localhost',
// 'port': '9108',
// 'protocol': 'http'
// }
],
'apiKey': 'xyz',
'numRetries': 3, // A total of 4 tries (1 original try + 3 retries)
'connectionTimeoutSeconds': 10,
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = (env, argv) => {
argv && argv.mode === "production" ? ".min" : ""
}.js`,
path: path.resolve(__dirname, "dist"),
library: "Typesense",
},
devtool: "source-map",
};
Expand Down

0 comments on commit 8b9ed0e

Please sign in to comment.