Socket
Socket
Sign inDemoInstall

@oneblink/sdk-core

Package Overview
Dependencies
Maintainers
6
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oneblink/sdk-core - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1-beta.1

4

CHANGELOG.md

@@ -10,4 +10,8 @@ # Changelog

### Added
- `previousApprovalId` to `replaceCustomValues`
## [0.1.0] - 2021-07-20
Initial release

3

dist/replaceCustomValues.d.ts

@@ -9,6 +9,7 @@ import { FormTypes, SubmissionTypes } from '@oneblink/types';

formatTime: (value: string) => string;
previousApprovalId?: string;
};
export default function replaceCustomValues(text: string, { form, submission, externalId, submissionId, submissionTimestamp, formatDate, formatTime, }: CustomValuesOptions & {
export default function replaceCustomValues(text: string, { form, submission, externalId, submissionId, submissionTimestamp, formatDate, formatTime, previousApprovalId, }: CustomValuesOptions & {
submission: SubmissionTypes.S3SubmissionData['submission'];
}): string;
export {};

@@ -42,5 +42,9 @@ "use strict";

},
{
string: '{PREVIOUS_APPROVAL_ID}',
value: ({ previousApprovalId }) => previousApprovalId || '',
},
];
function getElementSubmissionValue({ propertyName, submission, form, formatDate, formatTime, }) {
const formElement = formElementsService_1.findFormElement(form.elements, (element) => element.type !== 'page' &&
const formElement = (0, formElementsService_1.findFormElement)(form.elements, (element) => element.type !== 'page' &&
element.type !== 'section' &&

@@ -84,3 +88,3 @@ element.name === propertyName);

}
function replaceCustomValues(text, { form, submission, externalId, submissionId, submissionTimestamp, formatDate, formatTime, }) {
function replaceCustomValues(text, { form, submission, externalId, submissionId, submissionTimestamp, formatDate, formatTime, previousApprovalId, }) {
const string = replaceElementValues(text, {

@@ -100,2 +104,3 @@ form,

formatTime,
previousApprovalId,
}));

@@ -102,0 +107,0 @@ }, string);

{
"name": "@oneblink/sdk-core",
"description": "OneBlink SDK for JavaScript (works in Browsers and NodeJS)",
"version": "0.1.0",
"version": "0.1.1-beta.1",
"author": "OneBlink <developers@oneblink.io> (https://oneblink.io)",

@@ -13,14 +13,14 @@ "bugs": {

"@oneblink/types": "github:oneblink/types",
"@types/jest": "^26.0.23",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
"eslint": "^7.29.0",
"@types/jest": "^27.0.1",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.30.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-prettier": "^4.0.0",
"fixpack": "^4.0.0",
"jest": "^27.0.6",
"jest": "^27.1.0",
"prettier": "^2.3.2",
"ts-jest": "^27.0.3",
"tsc-watch": "^4.4.0",
"typescript": "^4.3.5"
"ts-jest": "^27.0.5",
"tsc-watch": "^4.5.0",
"typescript": "^4.4.2"
},

@@ -27,0 +27,0 @@ "directories": {

Sorry, the diff of this file is not supported yet

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