Skip to content

Commit

Permalink
Update axios (resolves #180), update dev dependencies (use webpack in…
Browse files Browse the repository at this point in the history
…stead of gulp and browserify)
  • Loading branch information
jasonbosco committed Oct 31, 2023
1 parent 1b80560 commit 51d6e85
Show file tree
Hide file tree
Showing 38 changed files with 14,741 additions and 20,005 deletions.
4 changes: 3 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"sourceMaps": true,
"presets": [
[
"@babel/preset-env",
Expand All @@ -11,7 +12,8 @@
]
}
}
]
],
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-transform-destructuring",
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"node",
"promise",
"standard",
"@typescript-eslint"
"@typescript-eslint",
"prettier"
],

"globals": {
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
17,225 changes: 7,602 additions & 9,623 deletions dist/typesense.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/typesense.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/typesense.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/typesense.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2 changes: 1 addition & 1 deletion dist/typesense.min.js.map

Large diffs are not rendered by default.

44 changes: 0 additions & 44 deletions gulpfile.babel.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/Typesense/Alias.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Aliases.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/AnalyticsRule.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/AnalyticsRules.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/ApiCall.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Collection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Override from "./Override";
import Synonyms from "./Synonyms";
import Synonym from "./Synonym";
import { Document } from "./Document";
export declare type FieldType = "string" | "int32" | "int64" | "float" | "bool" | "geopoint" | "geopoint[]" | "string[]" | "int32[]" | "int64[]" | "float[]" | "bool[]" | "object" | "object[]" | "auto" | "string*";
export type FieldType = "string" | "int32" | "int64" | "float" | "bool" | "geopoint" | "geopoint[]" | "string[]" | "int32[]" | "int64[]" | "float[]" | "bool[]" | "object" | "object[]" | "auto" | "string*";
export interface CollectionFieldSchema {
name: string;
type: FieldType;
Expand Down
2 changes: 1 addition & 1 deletion lib/Typesense/Collection.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Collections.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Debug.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Document.js

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

10 changes: 5 additions & 5 deletions lib/Typesense/Documents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export interface ImportResponseFail {
document: DocumentSchema;
code: number;
}
export declare type ImportResponse = ImportResponseSuccess | ImportResponseFail;
export declare type DocumentSchema = Record<string, any>;
export type ImportResponse = ImportResponseSuccess | ImportResponseFail;
export type DocumentSchema = Record<string, any>;
export interface SearchParamsWithPreset extends Partial<SearchParams> {
preset: string;
}
declare type OperationMode = "off" | "always" | "fallback";
type OperationMode = "off" | "always" | "fallback";
export interface SearchParams {
q: string;
query_by: string | string[];
Expand Down Expand Up @@ -74,12 +74,12 @@ export interface SearchParams {
offset?: number;
limit?: number;
}
declare type SearchResponseHighlightObject = {
type SearchResponseHighlightObject = {
matched_tokens?: string[];
snippet?: string;
value?: string;
};
export declare type SearchResponseHighlight<T> = T extends string | number ? SearchResponseHighlightObject : {
export type SearchResponseHighlight<T> = T extends string | number ? SearchResponseHighlightObject : {
[TAttribute in keyof T]?: SearchResponseHighlight<T[TAttribute]>;
};
export interface SearchResponseHit<T extends DocumentSchema> {
Expand Down
2 changes: 1 addition & 1 deletion lib/Typesense/Documents.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Health.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Key.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Keys.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Metrics.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/MultiSearch.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Operations.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Override.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Overrides.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Preset.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Presets.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/RequestWithCache.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/SearchOnlyDocuments.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Synonym.js

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

2 changes: 1 addition & 1 deletion lib/Typesense/Synonyms.js

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

Loading

0 comments on commit 51d6e85

Please sign in to comment.