Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trinsic/trinsic

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trinsic/trinsic - npm Package Compare versions

Comparing version 0.0.2 to 1.0.0-preview.2

lib/index.d.ts

8

package.json
{
"name": "@trinsic/trinsic",
"version": "0.0.2",
"version": "1.0.0-preview.2",
"description": "verifiable credentials",
"main": "lib/index.js",
"scripts": {
"build": "npm run build:typescript && npm run build:copy",
"build": "npm run build:proto && npm run build:typescript && npm run build:copy",
"build:proto": "pwsh Generate-Proto.ps1",
"build:typescript": "tsc",
"build:copy": "npx copyfiles -u 1 './src/proto/**/*_pb.*' ./dist/",
"build:copy": "npx copyfiles -u 1 './src/proto/**/*_pb.*' ./lib/",
"test": "ava --verbose"

@@ -10,0 +12,0 @@ },

@@ -1,25 +0,9 @@

// import * as credentialTemplates from "../dist/models/CredentialTemplates_grpc_pb";
// import * as attributes from "../dist/models/Attributes_grpc_pb";
// import {credentials} from "@grpc/grpc-js";
// import {ProviderClient} from "../dist/ProviderService_grpc_pb";
import { TrinsicWalletService } from './WalletService';
import { TrinsicProviderService } from './ProviderService';
// import * as TemplateModels from "../dist/CredentialTemplates_pb";
// import * as PresentationTemplates from "../dist/PresentationTemplates_pb";
// import {CredentialTemplatesClient} from "../dist/CredentialTemplates_grpc_pb";
// import {OrganizationsClient} from "../dist/Organizations_grpc_pb";
// const organizations = new OrganizationsClient("localhost:5000", grpc.credentials.createInsecure());
export * from "./proto/index";
// const provider = new ProviderClient("localhost:5000", credentials.createInsecure());
export {
// provider,
// credentialTemplates,
// attributes,
TrinsicWalletService as WalletService
// organizations,
// OrganizationModels,
// TemplateModels,
// PresentationTemplates
TrinsicWalletService as WalletService,
TrinsicProviderService as ProviderService
}
const test = require("ava");
const { TrinsicProviderService } = require("../dist/ProviderService.js");
const { InviteRequest, InvitationStatusRequest, InvitationStatusResponse } = require('../dist/proto/ProviderService_pb');
const { TrinsicWalletService } = require("../dist/WalletService.js");
const { WalletProfile } = require("../dist/proto/WalletService_pb.js");
const { Struct } = require('google-protobuf/google/protobuf/struct_pb');
const { InviteRequest, WalletProfile, ProviderService } = require("../lib");
const { Struct } = require("google-protobuf/google/protobuf/struct_pb");
const fs = require("fs");

@@ -12,4 +9,4 @@ const path = require("path");

// if you have a profile saved
let homePath = process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME']
let profilePath = path.join(homePath, '.trinsic', 'profile.bin');
let homePath = process.env[process.platform === "win32" ? "USERPROFILE" : "HOME"];
let profilePath = path.join(homePath, ".trinsic", "profile.bin");

@@ -29,6 +26,6 @@ let profileJSON = JSON.parse(fs.readFileSync(profilePath));

return profile;
}
};
test("make an invitation", async t => {
let providerService = new TrinsicProviderService();
test("make an invitation", async (t) => {
let providerService = new ProviderService();
let profile = await createProfile();

@@ -39,3 +36,3 @@ providerService.setProfile(profile);

inviteRequest.setDescription("invitation");
let inviteResponse = await providerService.inviteParticipant(inviteRequest);

@@ -48,3 +45,3 @@

test("check status of invitation", async t => {
test("check status of invitation", async (t) => {
// let providerService = new TrinsicProviderService();

@@ -61,3 +58,3 @@ // let profile = await createProfile();

// invitationStatusRequest.setInvitationId(inviteResponse.getInvitationId());
// let invitationStatusResponse = await providerService.invitationStatus(invitationStatusRequest);

@@ -68,4 +65,4 @@

t.pass();
})
});
test("debug", t => t.pass());
test("debug", (t) => t.pass());

@@ -6,3 +6,3 @@ const fs = require('fs');

const okapi = require('@trinsic/okapi');
const TrinsicWalletService = require("../dist/WalletService.js").TrinsicWalletService;
const TrinsicWalletService = require("../lib").WalletService;
const { GenerateKeyRequest } = require('@trinsic/okapi');

@@ -9,0 +9,0 @@ const { Struct } = require('google-protobuf/google/protobuf/struct_pb');

@@ -17,3 +17,3 @@ {

// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./dist", /* Redirect output structure to the directory. */
"outDir": "./lib", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */

@@ -20,0 +20,0 @@ // "composite": true, /* Enable project compilation */

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