Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

deprecated.js 872B

1234567891011121314151617181920212223242526272829303132
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.deprecationWarning = void 0;
  6. var _utils = require('./utils');
  7. /**
  8. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  9. *
  10. * This source code is licensed under the MIT license found in the
  11. * LICENSE file in the root directory of this source tree.
  12. */
  13. const deprecationMessage = (message, options) => {
  14. const comment = options.comment;
  15. const name =
  16. (options.title && options.title.deprecation) || _utils.DEPRECATION;
  17. (0, _utils.logValidationWarning)(name, message, comment);
  18. };
  19. const deprecationWarning = (config, option, deprecatedOptions, options) => {
  20. if (option in deprecatedOptions) {
  21. deprecationMessage(deprecatedOptions[option](config), options);
  22. return true;
  23. }
  24. return false;
  25. };
  26. exports.deprecationWarning = deprecationWarning;