Socket
Socket
Sign inDemoInstall

pocketbase

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pocketbase - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

42

dist/pocketbase.cjs.d.ts

@@ -79,3 +79,3 @@ interface SerializeOptions {

/**
* Base AuthStore class that is intented to be extended by all other
* Base AuthStore class that is intended to be extended by all other
* PocketBase AuthStore implementations.

@@ -136,34 +136,2 @@ */

/**
* The minimal AuthStore interface.
*
* @deprecated
* This interface predates the abstract BaseAuthStore class
* and it is kept mainly for backward compatibility.
*
* New AuthStore implementations should extend directly the
* BaseAuthStore abstract class.
*/
type AuthStore = {
/**
* Retrieves the stored token (if any).
*/
readonly token: string;
/**
* Retrieves the stored model data (if any).
*/
readonly model: User | Admin | null;
/**
* Checks if the store has valid (aka. existing and unexpired) token.
*/
readonly isValid: boolean;
/**
* Saves new token and model data in the auth store.
*/
save(token: string, model: User | Admin | null): void;
/**
* Removes the stored token and model data form the auth store.
*/
clear(): void;
};
/**
* BaseService class that should be inherited from all API services.

@@ -635,5 +603,5 @@ */

/**
* A replacable instance of the local `AuthStore` service.
* A replaceable instance of the local auth store service.
*/
authStore: AuthStore | BaseAuthStore;
authStore: BaseAuthStore;
/**

@@ -668,7 +636,7 @@ * An instance of the service that handles the **Settings APIs**.

private cancelControllers;
constructor(baseUrl?: string, lang?: string, authStore?: AuthStore | BaseAuthStore | null);
constructor(baseUrl?: string, lang?: string, authStore?: BaseAuthStore | null);
/**
* @deprecated Legacy alias for `this.authStore`.
*/
get AuthStore(): AuthStore;
get AuthStore(): BaseAuthStore;
/**

@@ -675,0 +643,0 @@ * @deprecated Legacy alias for `this.settings`.

@@ -79,3 +79,3 @@ interface SerializeOptions {

/**
* Base AuthStore class that is intented to be extended by all other
* Base AuthStore class that is intended to be extended by all other
* PocketBase AuthStore implementations.

@@ -136,34 +136,2 @@ */

/**
* The minimal AuthStore interface.
*
* @deprecated
* This interface predates the abstract BaseAuthStore class
* and it is kept mainly for backward compatibility.
*
* New AuthStore implementations should extend directly the
* BaseAuthStore abstract class.
*/
type AuthStore = {
/**
* Retrieves the stored token (if any).
*/
readonly token: string;
/**
* Retrieves the stored model data (if any).
*/
readonly model: User | Admin | null;
/**
* Checks if the store has valid (aka. existing and unexpired) token.
*/
readonly isValid: boolean;
/**
* Saves new token and model data in the auth store.
*/
save(token: string, model: User | Admin | null): void;
/**
* Removes the stored token and model data form the auth store.
*/
clear(): void;
};
/**
* BaseService class that should be inherited from all API services.

@@ -635,5 +603,5 @@ */

/**
* A replacable instance of the local `AuthStore` service.
* A replaceable instance of the local auth store service.
*/
authStore: AuthStore | BaseAuthStore;
authStore: BaseAuthStore;
/**

@@ -668,7 +636,7 @@ * An instance of the service that handles the **Settings APIs**.

private cancelControllers;
constructor(baseUrl?: string, lang?: string, authStore?: AuthStore | BaseAuthStore | null);
constructor(baseUrl?: string, lang?: string, authStore?: BaseAuthStore | null);
/**
* @deprecated Legacy alias for `this.authStore`.
*/
get AuthStore(): AuthStore;
get AuthStore(): BaseAuthStore;
/**

@@ -675,0 +643,0 @@ * @deprecated Legacy alias for `this.settings`.

@@ -79,3 +79,3 @@ interface SerializeOptions {

/**
* Base AuthStore class that is intented to be extended by all other
* Base AuthStore class that is intended to be extended by all other
* PocketBase AuthStore implementations.

@@ -136,34 +136,2 @@ */

/**
* The minimal AuthStore interface.
*
* @deprecated
* This interface predates the abstract BaseAuthStore class
* and it is kept mainly for backward compatibility.
*
* New AuthStore implementations should extend directly the
* BaseAuthStore abstract class.
*/
type AuthStore = {
/**
* Retrieves the stored token (if any).
*/
readonly token: string;
/**
* Retrieves the stored model data (if any).
*/
readonly model: User | Admin | null;
/**
* Checks if the store has valid (aka. existing and unexpired) token.
*/
readonly isValid: boolean;
/**
* Saves new token and model data in the auth store.
*/
save(token: string, model: User | Admin | null): void;
/**
* Removes the stored token and model data form the auth store.
*/
clear(): void;
};
/**
* BaseService class that should be inherited from all API services.

@@ -635,5 +603,5 @@ */

/**
* A replacable instance of the local `AuthStore` service.
* A replaceable instance of the local auth store service.
*/
authStore: AuthStore | BaseAuthStore;
authStore: BaseAuthStore;
/**

@@ -668,7 +636,7 @@ * An instance of the service that handles the **Settings APIs**.

private cancelControllers;
constructor(baseUrl?: string, lang?: string, authStore?: AuthStore | BaseAuthStore | null);
constructor(baseUrl?: string, lang?: string, authStore?: BaseAuthStore | null);
/**
* @deprecated Legacy alias for `this.authStore`.
*/
get AuthStore(): AuthStore;
get AuthStore(): BaseAuthStore;
/**

@@ -675,0 +643,0 @@ * @deprecated Legacy alias for `this.settings`.

2

package.json
{
"version": "0.6.0",
"version": "0.6.1",
"name": "pocketbase",

@@ -4,0 +4,0 @@ "description": "PocketBase JavaScript SDK",

@@ -437,3 +437,3 @@ PocketBase JavaScript SDK

export async function getServerSideProps({ req, res }) {
const client = new PocketBase("https://pocketbase.io");
const client = new PocketBase("http://127.0.0.1:8090");
client.authStore = new NextAuthStore(req, res);

@@ -440,0 +440,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc