
Security News
Static vs. Runtime Reachability: Insights from Latio’s On the Record Podcast
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
@azure/synapse
Advanced tools
SynapseClient Library with typescript type definitions for node.js and browser.
This package contains an isomorphic SDK for SynapseClient.
npm install @azure/synapse
"@azure/ms-rest-nodeauth": "^3.0.0"
.npm install @azure/ms-rest-nodeauth@"^3.0.0"
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { SynapseClient, SynapseModels, SynapseMappers } from "@azure/synapse";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new SynapseClient(creds, subscriptionId);
const workspaceName = "testworkspaceName";
const poolName = "testpoolName";
const livyId = "testlivyId";
const appId = "testappId";
const attemptId = "testattemptId";
client.monitoring.getHistoryServerData(workspaceName, poolName, livyId, appId, attemptId).then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.error(err);
});
npm install @azure/ms-rest-browserauth
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
<!DOCTYPE html>
<html lang="en">
<head>
<title>@azure/synapse sample</title>
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/synapse/dist/synapse.js"></script>
<script type="text/javascript">
const subscriptionId = "<Subscription_Id>";
const authManager = new msAuth.AuthManager({
clientId: "<client id for your Azure AD app>",
tenant: "<optional tenant for your organization>"
});
authManager.finalizeLogin().then((res) => {
if (!res.isLoggedIn) {
// may cause redirects
authManager.login();
}
const client = new Azure.Synapse.SynapseClient(res.creds, subscriptionId);
const workspaceName = "testworkspaceName";
const poolName = "testpoolName";
const livyId = "testlivyId";
const appId = "testappId";
const attemptId = "testattemptId";
client.monitoring.getHistoryServerData(workspaceName, poolName, livyId, appId, attemptId).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
});
</script>
</head>
<body></body>
</html>
FAQs
SynapseClient Library with typescript type definitions for node.js and browser.
The npm package @azure/synapse receives a total of 1,150 weekly downloads. As such, @azure/synapse popularity was classified as popular.
We found that @azure/synapse demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.