🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@jitl/quickjs-ffi-types

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jitl/quickjs-ffi-types - npm Package Compare versions

Comparing version

to
0.25.0-rc.2

66

dist/index.js

@@ -1,66 +0,2 @@

"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
EvalFlags: () => EvalFlags,
assertSync: () => assertSync
});
module.exports = __toCommonJS(src_exports);
// src/ffi-types.ts
function assertSync(fn) {
return function mustBeSync(...args) {
const result = fn(...args);
if (result && typeof result === "object" && result instanceof Promise) {
throw new Error("Function unexpectedly returned a Promise");
}
return result;
};
}
var EvalFlags = {
/** global code (default) */
JS_EVAL_TYPE_GLOBAL: 0 << 0,
/** module code */
JS_EVAL_TYPE_MODULE: 1 << 0,
/** direct call (internal use) */
JS_EVAL_TYPE_DIRECT: 2 << 0,
/** indirect call (internal use) */
JS_EVAL_TYPE_INDIRECT: 3 << 0,
JS_EVAL_TYPE_MASK: 3 << 0,
/** force 'strict' mode */
JS_EVAL_FLAG_STRICT: 1 << 3,
/** force 'strip' mode */
JS_EVAL_FLAG_STRIP: 1 << 4,
/**
* compile but do not run. The result is an object with a
* JS_TAG_FUNCTION_BYTECODE or JS_TAG_MODULE tag. It can be executed
* with JS_EvalFunction().
*/
JS_EVAL_FLAG_COMPILE_ONLY: 1 << 5,
/** don't include the stack frames before this eval in the Error() backtraces */
JS_EVAL_FLAG_BACKTRACE_BARRIER: 1 << 6
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
EvalFlags,
assertSync
});
"use strict";var p=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var _=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var P=(t,e)=>{for(var r in e)p(t,r,{get:e[r],enumerable:!0})},s=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _(e))!a.call(t,n)&&n!==r&&p(t,n,{get:()=>e[n],enumerable:!(o=i(e,n))||o.enumerable});return t};var u=t=>s(p({},"__esModule",{value:!0}),t);var c={};P(c,{EvalFlags:()=>x,assertSync:()=>S});module.exports=u(c);function S(t){return function(...r){let o=t(...r);if(o&&typeof o=="object"&&o instanceof Promise)throw new Error("Function unexpectedly returned a Promise");return o}}var x={JS_EVAL_TYPE_GLOBAL:0,JS_EVAL_TYPE_MODULE:1,JS_EVAL_TYPE_DIRECT:2,JS_EVAL_TYPE_INDIRECT:3,JS_EVAL_TYPE_MASK:3,JS_EVAL_FLAG_STRICT:8,JS_EVAL_FLAG_STRIP:16,JS_EVAL_FLAG_COMPILE_ONLY:32,JS_EVAL_FLAG_BACKTRACE_BARRIER:64};0&&(module.exports={EvalFlags,assertSync});
//# sourceMappingURL=index.js.map

5

package.json
{
"name": "@jitl/quickjs-ffi-types",
"version": "0.25.0-rc.1",
"version": "0.25.0-rc.2",
"repository": {

@@ -31,3 +31,6 @@ "type": "git",

},
"devDependencies": {
"@jitl/tsconfig": "0.25.0-rc.2"
},
"stableVersion": "0.24.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet