@firebase/ai 2.2.1-canary.4d834deb2 → 2.2.1-canary.a4848b401
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.esm.js +518 -501
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/src/factory-browser.d.ts +19 -0
- package/dist/index.cjs.js +518 -501
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.node.cjs.js +1 -1
- package/dist/index.node.mjs +1 -1
- package/dist/src/factory-browser.d.ts +19 -0
- package/package.json +10 -9
package/dist/index.node.cjs.js
CHANGED
package/dist/index.node.mjs
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { ComponentContainer, InstanceFactoryOptions } from '@firebase/component';
|
|
18
|
+
import { AIService } from './service';
|
|
19
|
+
export declare function factory(container: ComponentContainer, { instanceIdentifier }: InstanceFactoryOptions): AIService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/ai",
|
|
3
|
-
"version": "2.2.1-canary.
|
|
3
|
+
"version": "2.2.1-canary.a4848b401",
|
|
4
4
|
"description": "The Firebase AI SDK",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"engines": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dev": "rollup -c -w",
|
|
36
36
|
"update-responses": "../../scripts/update_vertexai_responses.sh",
|
|
37
37
|
"testsetup": "yarn update-responses && yarn ts-node ./test-utils/convert-mocks.ts",
|
|
38
|
-
"test": "run-p --npm-path npm lint test:browser",
|
|
38
|
+
"test": "run-p --npm-path npm lint type-check test:browser",
|
|
39
39
|
"test:ci": "yarn testsetup && node ../../scripts/run_tests_in_ci.js -s test",
|
|
40
40
|
"test:skip-clone": "karma start",
|
|
41
41
|
"test:browser": "yarn testsetup && karma start",
|
|
@@ -44,22 +44,23 @@
|
|
|
44
44
|
"test:integration:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha integration/**/*.test.ts --config ../../config/mocharc.node.js",
|
|
45
45
|
"api-report": "api-extractor run --local --verbose",
|
|
46
46
|
"typings:public": "node ../../scripts/build/use_typings.js ./dist/ai-public.d.ts",
|
|
47
|
+
"type-check": "yarn tsc --noEmit",
|
|
47
48
|
"trusted-type-check": "tsec -p tsconfig.json --noEmit"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
|
-
"@firebase/app": "0.14.2-canary.
|
|
51
|
-
"@firebase/app-types": "0.9.3-canary.
|
|
51
|
+
"@firebase/app": "0.14.2-canary.a4848b401",
|
|
52
|
+
"@firebase/app-types": "0.9.3-canary.a4848b401"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"@firebase/app-check-interop-types": "0.3.3-canary.
|
|
55
|
-
"@firebase/component": "0.7.0-canary.
|
|
56
|
-
"@firebase/logger": "0.5.0-canary.
|
|
57
|
-
"@firebase/util": "1.13.0-canary.
|
|
55
|
+
"@firebase/app-check-interop-types": "0.3.3-canary.a4848b401",
|
|
56
|
+
"@firebase/component": "0.7.0-canary.a4848b401",
|
|
57
|
+
"@firebase/logger": "0.5.0-canary.a4848b401",
|
|
58
|
+
"@firebase/util": "1.13.0-canary.a4848b401",
|
|
58
59
|
"tslib": "^2.1.0"
|
|
59
60
|
},
|
|
60
61
|
"license": "Apache-2.0",
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@firebase/app": "0.14.2-canary.
|
|
63
|
+
"@firebase/app": "0.14.2-canary.a4848b401",
|
|
63
64
|
"@rollup/plugin-json": "6.1.0",
|
|
64
65
|
"rollup": "2.79.2",
|
|
65
66
|
"rollup-plugin-replace": "2.2.0",
|