MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / parse

Method parse

ui/media/js/engine.js:59–73  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

57 }
58
59 parse(value) {
60 if (typeof value === "undefined") {
61 return
62 }
63 if (!isArrayOrTypedArray(value)) {
64 return [value]
65 }
66 if (value.length === 0) {
67 return value
68 }
69 if (typeof this.textDecoder === "undefined") {
70 this.textDecoder = new TextDecoder()
71 }
72 return [this.textDecoder.decode(value)]
73 }
74 onComplete(value) {
75 return value
76 }

Callers 15

openMethod · 0.95
readStreamAsJSONMethod · 0.80
ZFunction · 0.80
parseBooleanFunction · 0.80
dnd.jsFile · 0.80
parseTaskFromTextFunction · 0.80
parseContentFunction · 0.80
loadSettingsFunction · 0.80
tryLoadOldSettingsFunction · 0.80
populateModelsMethod · 0.80
main.jsFile · 0.80
createCollapsiblesFunction · 0.80

Calls 1

isArrayOrTypedArrayFunction · 0.85

Tested by

no test coverage detected