Add capacitorjs runtime

This commit is contained in:
olcxja 2026-05-03 17:09:55 +02:00
commit f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions

35
node_modules/formidable/dist/parsers/JSON.cjs generated vendored Normal file
View file

@ -0,0 +1,35 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var node_stream = require('node:stream');
/* eslint-disable no-underscore-dangle */
class JSONParser extends node_stream.Transform {
constructor(options = {}) {
super({ readableObjectMode: true });
this.chunks = [];
this.globalOptions = { ...options };
}
_transform(chunk, encoding, callback) {
this.chunks.push(String(chunk)); // todo consider using a string decoder
callback();
}
_flush(callback) {
try {
const fields = JSON.parse(this.chunks.join(''));
this.push(fields);
} catch (e) {
callback(e);
return;
}
this.chunks = null;
callback();
}
}
exports.default = JSONParser;