@ambasada/miniapp 0.7.5 → 0.8.1

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/index.d.ts CHANGED
@@ -144,7 +144,7 @@ export declare const auth: {
144
144
  }>;
145
145
  /**
146
146
  * Silent sign-in in one call: gets a shell token and POSTs it to your server (`/api/auth/shell` in the templates,
147
- * `village.auth.shell(req)` in @ambasada/sdk), which sets your session cookie. Resolves the server's `user`, or
147
+ * `ambasada.auth.shell(req)` in @ambasada/sdk), which sets your session cookie. Resolves the server's `user`, or
148
148
  * null when the shell can't do it (outside the app, an older app, an app that is not verified): then show
149
149
  * "Sign in with Ambasada". Rejects when your server refuses the token.
150
150
  */
@@ -215,7 +215,7 @@ declare const _default: {
215
215
  }>;
216
216
  /**
217
217
  * Silent sign-in in one call: gets a shell token and POSTs it to your server (`/api/auth/shell` in the templates,
218
- * `village.auth.shell(req)` in @ambasada/sdk), which sets your session cookie. Resolves the server's `user`, or
218
+ * `ambasada.auth.shell(req)` in @ambasada/sdk), which sets your session cookie. Resolves the server's `user`, or
219
219
  * null when the shell can't do it (outside the app, an older app, an app that is not verified): then show
220
220
  * "Sign in with Ambasada". Rejects when your server refuses the token.
221
221
  */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // ../miniapp/src/index.ts
1
+ // src/index.ts
2
2
  var DEFAULT_SAFE_AREA = { top: 0, bottom: 0, left: 0, right: 0 };
3
3
  var NOT_IN_AMBASADA = "not inside the Ambasada app";
4
4
  var win = () => typeof window === "undefined" ? null : window;
@@ -131,7 +131,7 @@ var auth = {
131
131
  },
132
132
  /**
133
133
  * Silent sign-in in one call: gets a shell token and POSTs it to your server (`/api/auth/shell` in the templates,
134
- * `village.auth.shell(req)` in @ambasada/sdk), which sets your session cookie. Resolves the server's `user`, or
134
+ * `ambasada.auth.shell(req)` in @ambasada/sdk), which sets your session cookie. Resolves the server's `user`, or
135
135
  * null when the shell can't do it (outside the app, an older app, an app that is not verified): then show
136
136
  * "Sign in with Ambasada". Rejects when your server refuses the token.
137
137
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ambasada/miniapp",
3
- "version": "0.7.5",
3
+ "version": "0.8.1",
4
4
  "description": "Run your web app inside the Ambasada app as a mini app: ready(), shell context, safe areas, open links, haptics, notifications. Zero dependencies; also a <script> build.",
5
5
  "type": "module",
6
6
  "license": "MIT",