How to use the depd.property function in depd

To help you get started, we’ve selected a few depd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github benjamn / recast / lib / visitor.js View on Github external
if (typeof newValue === "undefined") {
                    // Keep oldValue.
                } else {
                    node[field] = newValue;
                }

            } else if (typeof oldValue === "object") {
                this.genericVisit(oldValue);
            }
        }

        return node;
    }
});

require("depd")('require("recast").Visitor').property(
    Visitor, "extend",
    'Please use require("recast").visit instead of require("recast").Visitor'
);

depd

Deprecate all the things

MIT
Latest version published 6 years ago

Package Health Score

67 / 100
Full package analysis

Popular depd functions