MCPcopy Index your code
hub / github.com/ClearURLs/Addon / wrapAPIs

Function wrapAPIs

browser-polyfill.js:33–1216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 // never actually need to be called, this allows the polyfill to be included
32 // in Firefox nearly for free.
33 const wrapAPIs = extensionAPIs => {
34 // NOTE: apiMetadata is associated to the content of the api-metadata.json file
35 // at build time by replacing the following "include" with the content of the
36 // JSON file.
37 const apiMetadata = {
38 "alarms": {
39 "clear": {
40 "minArgs": 0,
41 "maxArgs": 1
42 },
43 "clearAll": {
44 "minArgs": 0,
45 "maxArgs": 0
46 },
47 "get": {
48 "minArgs": 0,
49 "maxArgs": 1
50 },
51 "getAll": {
52 "minArgs": 0,
53 "maxArgs": 0
54 }
55 },
56 "bookmarks": {
57 "create": {
58 "minArgs": 1,
59 "maxArgs": 1
60 },
61 "get": {
62 "minArgs": 1,
63 "maxArgs": 1
64 },
65 "getChildren": {
66 "minArgs": 1,
67 "maxArgs": 1
68 },
69 "getRecent": {
70 "minArgs": 1,
71 "maxArgs": 1
72 },
73 "getSubTree": {
74 "minArgs": 1,
75 "maxArgs": 1
76 },
77 "getTree": {
78 "minArgs": 0,
79 "maxArgs": 0
80 },
81 "move": {
82 "minArgs": 2,
83 "maxArgs": 2
84 },
85 "remove": {
86 "minArgs": 1,
87 "maxArgs": 1
88 },
89 "removeTree": {
90 "minArgs": 1,

Callers 1

Calls 5

wrapObjectFunction · 0.85
isThenableFunction · 0.85
sendPromisedResultFunction · 0.85
wrapEventFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected