@microsoft/teams-js
Advanced tools
Comparing version 2.29.1-beta.0 to 2.30.0-beta.0
@@ -1,1 +0,1 @@ | ||
import{ensureInitialized as i}from"../internal/internalAPIs.js";import{errorNotSupportedOnPlatform as n}from"../public/constants.js";import{runtime as o}from"../public/runtime.js";var t;!function(t){!function(t){function r(){var n;return i(o)&&!!(null===(n=o.hostVersionsInfo)||void 0===n?void 0:n.appEligibilityInformation)}t.isSupported=r,t.getEligibilityInfo=function(){if(i(o),!r())throw n;return o.hostVersionsInfo.appEligibilityInformation}}(t.eligibility||(t.eligibility={}))}(t||(t={}));export{t as copilot}; | ||
import{__awaiter as i}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendAndUnwrap as o}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getLogger as r,getApiVersionTag as n}from"../internal/telemetry.js";import{errorNotSupportedOnPlatform as l}from"../public/constants.js";import{isSdkError as e}from"../public/interfaces.js";import{runtime as s}from"../public/runtime.js";const p=r("copilot");var a;!function(r){!function(r){function a(){var i,o;return t(s)&&(!!(null===(i=s.hostVersionsInfo)||void 0===i?void 0:i.appEligibilityInformation)||!!(null===(o=s.supports.copilot)||void 0===o?void 0:o.eligibility))}r.isSupported=a,r.getEligibilityInfo=function(){var r,m;return i(this,void 0,void 0,(function*(){if(t(s),!a())throw new Error(`Error code: ${l.errorCode}, message: Not supported on platform`);if(null===(r=s.hostVersionsInfo)||void 0===r?void 0:r.appEligibilityInformation)return p("Eligibility information is already available on runtime."),s.hostVersionsInfo.appEligibilityInformation;p("Eligibility information is not available on runtime. Requesting from host.");const i=yield o(n("v2","copilot.eligibility.getEligibilityInfo"),"copilot.eligibility.getEligibilityInfo");if(e(i))throw new Error(`Error code: ${i.errorCode}, message: ${null!==(m=i.message)&&void 0!==m?m:"Failed to get eligibility information from the host."}`);if(!function(i){if(void 0===i.ageGroup||void 0===i.cohort||void 0===i.userClassification||void 0===i.isCopilotEligible||void 0===i.isCopilotEnabledRegion||void 0===i.isOptedOutByAdmin)return!1;return!0}(i))throw new Error("Error deserializing eligibility information");return i}))}}(r.eligibility||(r.eligibility={}))}(a||(a={}));export{a as copilot}; |
@@ -1,1 +0,1 @@ | ||
const t="2.29.1-beta.0";export{t as version}; | ||
const t="2.30.0-beta.0";export{t as version}; |
@@ -1,1 +0,1 @@ | ||
{"name":"@microsoft/teams-js","author":"Microsoft Teams","version":"2.29.1-beta.0","description":"Microsoft Client SDK for building app for Microsoft hosts","repository":{"directory":"packages/teams-js","type":"git","url":"https://github.com/OfficeDev/microsoft-teams-library-js"},"main":"./dist/umd/MicrosoftTeams.min.js","typings":"./dist/umd/MicrosoftTeams.d.ts","module":"./dist/esm/packages/teams-js/src/index.js","type":"module","scripts":{"build":"pnpm clean && pnpm lint && pnpm build-rollup && pnpm build-webpack && pnpm docs:validate","build-rollup":"pnpm clean && rollup -c","build-webpack":"webpack","clean":"rimraf ./dist","docs":"pnpm typedoc","docs:validate":"pnpm typedoc --emit none","lint":"pnpm eslint ./src ./test --max-warnings 0 --fix --ext .ts","prettier":"prettier --write '**/*.{ts,js,css,html}'","test":"jest","test:verbose":"pnpm test -- --verbose false --silent false"},"dependencies":{"base64-js":"^1.3.1","debug":"^4.3.3"},"devDependencies":{"@types/debug":"^4.1.7"},"sideEffects":["src/internal/communication.ts","src/internal/nestedAppAuthUtils.ts","src/internal/utils.ts","src/internal/videoEffectsUtils.ts","src/private/constants.ts","src/private/interfaces.ts","src/public/constants.ts","src/public/handlers.ts","src/public/interfaces.ts"],"license":"MIT","files":["dist/**","LICENSE","README.md"]} | ||
{"name":"@microsoft/teams-js","author":"Microsoft Teams","version":"2.30.0-beta.0","description":"Microsoft Client SDK for building app for Microsoft hosts","repository":{"directory":"packages/teams-js","type":"git","url":"https://github.com/OfficeDev/microsoft-teams-library-js"},"main":"./dist/umd/MicrosoftTeams.min.js","typings":"./dist/umd/MicrosoftTeams.d.ts","module":"./dist/esm/packages/teams-js/src/index.js","type":"module","scripts":{"build":"pnpm clean && pnpm lint && pnpm build-rollup && pnpm build-webpack && pnpm docs:validate","build-rollup":"pnpm clean && rollup -c","build-webpack":"webpack","clean":"rimraf ./dist","docs":"pnpm typedoc","docs:validate":"pnpm typedoc --emit none","lint":"pnpm eslint ./src ./test --max-warnings 0 --fix --ext .ts","prettier":"prettier --write '**/*.{ts,js,css,html}'","test":"jest","test:verbose":"pnpm test -- --verbose false --silent false"},"dependencies":{"base64-js":"^1.3.1","debug":"^4.3.3"},"devDependencies":{"@types/debug":"^4.1.7"},"sideEffects":["src/internal/communication.ts","src/internal/nestedAppAuthUtils.ts","src/internal/utils.ts","src/internal/videoEffectsUtils.ts","src/private/constants.ts","src/private/interfaces.ts","src/public/constants.ts","src/public/handlers.ts","src/public/interfaces.ts"],"license":"MIT","files":["dist/**","LICENSE","README.md"]} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3977707
28698