Sha256: 353958f7fb711aa2e46ef10fc03f67fb64d0ca6ae3be90598eb360166b19b5d4

Contents?: true

Size: 498 Bytes

Versions: 64

Compression:

Stored size: 498 Bytes

Contents

var $metadata = require('./_metadata');
var anObject = require('./_an-object');
var aFunction = require('./_a-function');
var toMetaKey = $metadata.key;
var ordinaryDefineOwnMetadata = $metadata.set;

$metadata.exp({ metadata: function metadata(metadataKey, metadataValue) {
  return function decorator(target, targetKey) {
    ordinaryDefineOwnMetadata(
      metadataKey, metadataValue,
      (targetKey !== undefined ? anObject : aFunction)(target),
      toMetaKey(targetKey)
    );
  };
} });

Version data entries

64 entries across 29 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/core-js/library/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.51 node_modules/core-js/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.50 node_modules/core-js/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.50 node_modules/core-js/library/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.49 node_modules/core-js/library/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.49 node_modules/core-js/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.48 node_modules/core-js/library/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.48 node_modules/core-js/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.47 node_modules/core-js/library/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.47 node_modules/core-js/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.46 node_modules/core-js/library/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.46 node_modules/core-js/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.45 node_modules/core-js/library/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.45 node_modules/core-js/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.44 node_modules/core-js/library/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.44 node_modules/core-js/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.43 node_modules/core-js/library/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.43 node_modules/core-js/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.42 node_modules/core-js/library/modules/es7.reflect.metadata.js
immosquare-cleaner-0.1.42 node_modules/core-js/modules/es7.reflect.metadata.js