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

@formsort/custom-question-api

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formsort/custom-question-api - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

lib/utils.d.ts

7

lib/index.d.ts

@@ -1,1 +0,6 @@

export declare const Greeter: (name: string) => string;
export declare const setQuestionSize: (width?: number | undefined, height?: number | undefined) => void;
export declare const getAnswerValue: () => Promise<unknown>;
export declare const getAnswers: () => Promise<unknown>;
export declare const getResponderUuid: () => Promise<unknown>;
export declare const clearAnswerValue: () => void;
export declare const setAnswerValue: (value: string | number | boolean) => void;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Greeter = function (name) { return "Hello " + name; };
var constants_1 = require("@formsort/constants");
var utils_1 = require("./utils");
exports.setQuestionSize = function (width, height) {
utils_1.sendMessageToWindowParent(constants_1.SET_QUESTION_SIZE_MSG, {
width: width,
height: height,
});
};
exports.getAnswerValue = function () {
return utils_1.getValueFromWindowParent(constants_1.REQUEST_ANSWER_VALUE_MSG, constants_1.SET_ANSWER_VALUE_MSG);
};
exports.getAnswers = function () {
return utils_1.getValueFromWindowParent(constants_1.REQUEST_ANSWERS_MSG, constants_1.SET_ANSWERS_MSG);
};
exports.getResponderUuid = function () {
return utils_1.getValueFromWindowParent(constants_1.REQUEST_RESPONDER_UUID_MSG, constants_1.SET_RESPONDER_UUID_MSG);
};
exports.clearAnswerValue = function () {
utils_1.sendMessageToWindowParent(constants_1.CLEAR_ANSWER_VALUE_MSG);
};
exports.setAnswerValue = function (value) {
utils_1.sendMessageToWindowParent(constants_1.SET_ANSWER_VALUE_MSG, value);
};

3

package.json
{
"name": "@formsort/custom-question-api",
"version": "0.0.4",
"version": "0.0.5",
"description": "Helpers for implementing custom questions in Formsort",

@@ -10,2 +10,3 @@ "main": "index.js",

"lint": "tslint -p tsconfig.json",
"prepare": "npm run build",
"prepublishOnly": "npm run lint",

@@ -12,0 +13,0 @@ "preversion": "npm run lint",

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