@magic-ext/oidc 1.1.0-canary.551.5360551179.0 → 1.1.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,42 @@
1
+ # v1.1.0 (Fri Jun 23 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Auto version bumping [#557](https://github.com/magiclabs/magic-js/pull/557) ([@Ethella](https://github.com/Ethella) [@Ariflo](https://github.com/Ariflo))
6
+ - Updates License to Apache 2.0 [#551](https://github.com/magiclabs/magic-js/pull/551) ([@Ariflo](https://github.com/Ariflo))
7
+
8
+ #### 🐛 Bug Fix
9
+
10
+ - Update CHANGELOG.md \[skip ci\] ([@Ethella](https://github.com/Ethella))
11
+ - Replace `magic-sdk` w/ `@magic-sdk/commons` for `@magic-ext/oidc` Package [#550](https://github.com/magiclabs/magic-js/pull/550) ([@Ariflo](https://github.com/Ariflo))
12
+ - Updates License to Apache 2.0 ([@Ariflo](https://github.com/Ariflo))
13
+ - replace magic-sdk w/ @magic-sdk/commons ([@Ariflo](https://github.com/Ariflo))
14
+
15
+ #### Authors: 2
16
+
17
+ - Arian Flores ([@Ariflo](https://github.com/Ariflo))
18
+ - Jerry Liu ([@Ethella](https://github.com/Ethella))
19
+
20
+ ---
21
+
22
+ # v1.1.0 (Fri Jun 23 2023)
23
+
24
+ #### 🚀 Enhancement
25
+
26
+ - Updates License to Apache 2.0 [#551](https://github.com/magiclabs/magic-js/pull/551) ([@Ariflo](https://github.com/Ariflo))
27
+
28
+ #### 🐛 Bug Fix
29
+
30
+ - Replace `magic-sdk` w/ `@magic-sdk/commons` for `@magic-ext/oidc` Package [#550](https://github.com/magiclabs/magic-js/pull/550) ([@Ariflo](https://github.com/Ariflo))
31
+ - Updates License to Apache 2.0 ([@Ariflo](https://github.com/Ariflo))
32
+ - replace magic-sdk w/ @magic-sdk/commons ([@Ariflo](https://github.com/Ariflo))
33
+
34
+ #### Authors: 1
35
+
36
+ - Arian Flores ([@Ariflo](https://github.com/Ariflo))
37
+
38
+ ---
39
+
1
40
  # v1.0.1 (Wed Jan 04 2023)
2
41
 
3
42
  #### 🐛 Bug Fix
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var r=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(i,t)=>{for(var n in t)r(i,n,{get:t[n],enumerable:!0})},h=(i,t,n,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of m(t))!c.call(i,o)&&o!==n&&r(i,o,{get:()=>t[o],enumerable:!(e=g(t,o))||e.enumerable});return i};var l=i=>h(r({},"__esModule",{value:!0}),i);var u={};d(u,{MagicOpenIdConnectPayloadMethod:()=>a,OpenIdExtension:()=>s});module.exports=l(u);var p=require("magic-sdk");var a=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(a||{});var s=class extends p.Extension.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(n){let e=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[n]);return this.request(e)}};
1
+ "use strict";var r=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(i,t)=>{for(var n in t)r(i,n,{get:t[n],enumerable:!0})},h=(i,t,n,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of m(t))!c.call(i,o)&&o!==n&&r(i,o,{get:()=>t[o],enumerable:!(e=g(t,o))||e.enumerable});return i};var l=i=>h(r({},"__esModule",{value:!0}),i);var u={};d(u,{MagicOpenIdConnectPayloadMethod:()=>a,OpenIdExtension:()=>s});module.exports=l(u);var p=require("@magic-sdk/commons");var a=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(a||{});var s=class extends p.Extension.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(n){let e=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[n]);return this.request(e)}};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts", "../../src/types.ts"],
4
- "sourcesContent": ["import { Extension } from 'magic-sdk';\nimport { MagicOpenIdConnectPayloadMethod, LoginWithOpenIdParams } from './types';\n\nexport class OpenIdExtension extends Extension.Internal<'openid', any> {\n name = 'openid' as const;\n config: any = {};\n\n public loginWithOIDC(params: LoginWithOpenIdParams) {\n const requestPayload = this.utils.createJsonRpcRequestPayload(MagicOpenIdConnectPayloadMethod.LoginWithOIDC, [\n params,\n ]);\n return this.request<string>(requestPayload);\n }\n}\n\nexport * from './types';\n", "export interface LoginWithOpenIdParams {\n jwt: string;\n providerId: string;\n}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qCAAAE,EAAA,oBAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAA0B,qBCKnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDFL,IAAMC,EAAN,cAA8B,YAAU,QAAwB,CAAhE,kCACL,UAAO,SACP,YAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
6
- "names": ["src_exports", "__export", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "__toCommonJS", "import_magic_sdk", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "params", "requestPayload"]
4
+ "sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { MagicOpenIdConnectPayloadMethod, LoginWithOpenIdParams } from './types';\n\nexport class OpenIdExtension extends Extension.Internal<'openid', any> {\n name = 'openid' as const;\n config: any = {};\n\n public loginWithOIDC(params: LoginWithOpenIdParams) {\n const requestPayload = this.utils.createJsonRpcRequestPayload(MagicOpenIdConnectPayloadMethod.LoginWithOIDC, [\n params,\n ]);\n return this.request<string>(requestPayload);\n }\n}\n\nexport * from './types';\n", "export interface LoginWithOpenIdParams {\n jwt: string;\n providerId: string;\n}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qCAAAE,EAAA,oBAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAA0B,8BCKnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDFL,IAAMC,EAAN,cAA8B,YAAU,QAAwB,CAAhE,kCACL,UAAO,SACP,YAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
6
+ "names": ["src_exports", "__export", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "__toCommonJS", "import_commons", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "params", "requestPayload"]
7
7
  }
package/dist/es/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{Extension as r}from"magic-sdk";var i=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(i||{});var n=class extends r.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(o){let e=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[o]);return this.request(e)}};export{i as MagicOpenIdConnectPayloadMethod,n as OpenIdExtension};
1
+ import{Extension as r}from"@magic-sdk/commons";var i=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(i||{});var n=class extends r.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(o){let e=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[o]);return this.request(e)}};export{i as MagicOpenIdConnectPayloadMethod,n as OpenIdExtension};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts", "../../src/types.ts"],
4
- "sourcesContent": ["import { Extension } from 'magic-sdk';\nimport { MagicOpenIdConnectPayloadMethod, LoginWithOpenIdParams } from './types';\n\nexport class OpenIdExtension extends Extension.Internal<'openid', any> {\n name = 'openid' as const;\n config: any = {};\n\n public loginWithOIDC(params: LoginWithOpenIdParams) {\n const requestPayload = this.utils.createJsonRpcRequestPayload(MagicOpenIdConnectPayloadMethod.LoginWithOIDC, [\n params,\n ]);\n return this.request<string>(requestPayload);\n }\n}\n\nexport * from './types';\n", "export interface LoginWithOpenIdParams {\n jwt: string;\n providerId: string;\n}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
5
- "mappings": "AAAA,OAAS,aAAAA,MAAiB,YCKnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDFL,IAAMC,EAAN,cAA8BC,EAAU,QAAwB,CAAhE,kCACL,UAAO,SACP,YAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
4
+ "sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { MagicOpenIdConnectPayloadMethod, LoginWithOpenIdParams } from './types';\n\nexport class OpenIdExtension extends Extension.Internal<'openid', any> {\n name = 'openid' as const;\n config: any = {};\n\n public loginWithOIDC(params: LoginWithOpenIdParams) {\n const requestPayload = this.utils.createJsonRpcRequestPayload(MagicOpenIdConnectPayloadMethod.LoginWithOIDC, [\n params,\n ]);\n return this.request<string>(requestPayload);\n }\n}\n\nexport * from './types';\n", "export interface LoginWithOpenIdParams {\n jwt: string;\n providerId: string;\n}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
5
+ "mappings": "AAAA,OAAS,aAAAA,MAAiB,qBCKnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDFL,IAAMC,EAAN,cAA8BC,EAAU,QAAwB,CAAhE,kCACL,UAAO,SACP,YAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
6
6
  "names": ["Extension", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "Extension", "params", "requestPayload"]
7
7
  }
package/dist/es/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{Extension as r}from"magic-sdk";var i=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(i||{});var n=class extends r.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(o){let e=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[o]);return this.request(e)}};export{i as MagicOpenIdConnectPayloadMethod,n as OpenIdExtension};
1
+ import{Extension as r}from"@magic-sdk/commons";var i=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(i||{});var n=class extends r.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(o){let e=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[o]);return this.request(e)}};export{i as MagicOpenIdConnectPayloadMethod,n as OpenIdExtension};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts", "../../src/types.ts"],
4
- "sourcesContent": ["import { Extension } from 'magic-sdk';\nimport { MagicOpenIdConnectPayloadMethod, LoginWithOpenIdParams } from './types';\n\nexport class OpenIdExtension extends Extension.Internal<'openid', any> {\n name = 'openid' as const;\n config: any = {};\n\n public loginWithOIDC(params: LoginWithOpenIdParams) {\n const requestPayload = this.utils.createJsonRpcRequestPayload(MagicOpenIdConnectPayloadMethod.LoginWithOIDC, [\n params,\n ]);\n return this.request<string>(requestPayload);\n }\n}\n\nexport * from './types';\n", "export interface LoginWithOpenIdParams {\n jwt: string;\n providerId: string;\n}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
5
- "mappings": "AAAA,OAAS,aAAAA,MAAiB,YCKnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDFL,IAAMC,EAAN,cAA8BC,EAAU,QAAwB,CAAhE,kCACL,UAAO,SACP,YAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
4
+ "sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { MagicOpenIdConnectPayloadMethod, LoginWithOpenIdParams } from './types';\n\nexport class OpenIdExtension extends Extension.Internal<'openid', any> {\n name = 'openid' as const;\n config: any = {};\n\n public loginWithOIDC(params: LoginWithOpenIdParams) {\n const requestPayload = this.utils.createJsonRpcRequestPayload(MagicOpenIdConnectPayloadMethod.LoginWithOIDC, [\n params,\n ]);\n return this.request<string>(requestPayload);\n }\n}\n\nexport * from './types';\n", "export interface LoginWithOpenIdParams {\n jwt: string;\n providerId: string;\n}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
5
+ "mappings": "AAAA,OAAS,aAAAA,MAAiB,qBCKnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDFL,IAAMC,EAAN,cAA8BC,EAAU,QAAwB,CAAhE,kCACL,UAAO,SACP,YAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
6
6
  "names": ["Extension", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "Extension", "params", "requestPayload"]
7
7
  }
@@ -1,9 +1,9 @@
1
- import { Extension } from 'magic-sdk';
1
+ import { Extension } from '@magic-sdk/commons';
2
2
  import { LoginWithOpenIdParams } from './types';
3
3
  export declare class OpenIdExtension extends Extension.Internal<'openid', any> {
4
4
  name: "openid";
5
5
  config: any;
6
- loginWithOIDC(params: LoginWithOpenIdParams): import("magic-sdk").PromiEvent<string, {
6
+ loginWithOIDC(params: LoginWithOpenIdParams): import("@magic-sdk/commons").PromiEvent<string, {
7
7
  done: (result: string) => void;
8
8
  error: (reason: any) => void;
9
9
  settled: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magic-ext/oidc",
3
- "version": "1.1.0-canary.551.5360551179.0",
3
+ "version": "1.1.0",
4
4
  "description": "Magic OIDC SDK Extension for Web environments.",
5
5
  "author": "Magic <team@magic.link> (https://magic.link/)",
6
6
  "license": "MIT",
@@ -23,11 +23,11 @@
23
23
  },
24
24
  "externals": {
25
25
  "include": [
26
- "magic-sdk"
26
+ "@magic-sdk/commons"
27
27
  ]
28
28
  },
29
29
  "devDependencies": {
30
- "magic-sdk": "^9.0.0"
30
+ "@magic-sdk/commons": "^14.2.0"
31
31
  },
32
- "gitHead": "c18991570fba48869cce7f55aa99d9d90e392e9a"
32
+ "gitHead": "49d171b23611e73d2354677a5bbef9d276b42867"
33
33
  }