can-reflect
Advanced tools
Comparing version 1.13.2 to 1.13.3
@@ -18,7 +18,7 @@ @module {Object} can-reflect | ||
```js | ||
const canReflect = require("can-reflect"); | ||
import canReflect from "can-reflect"; | ||
const map = CREATE_MAP_SOMEHOW(); | ||
canReflect.setKeyValue(map,"name", "my map"); | ||
canReflect.setKeyValue( map, "name", "my map" ); | ||
``` | ||
@@ -31,3 +31,3 @@ | ||
```js | ||
const canSymbol = require("can-symbol"); | ||
import canSymbol from "can-symbol"; | ||
@@ -37,7 +37,7 @@ const obj = { | ||
}; | ||
obj[canSymbol.for("can.getKeyValue")] = function(key){ | ||
return this._data.get(key); | ||
obj[ canSymbol.for( "can.getKeyValue" ) ] = function( key ) { | ||
return this._data.get( key ); | ||
}; | ||
obj[canSymbol.for("can.setKeyValue")] = function(key, value){ | ||
return this._data.set(key, value); | ||
obj[ canSymbol.for( "can.setKeyValue" ) ] = function( key, value ) { | ||
return this._data.set( key, value ); | ||
}; | ||
@@ -44,0 +44,0 @@ ``` |
{ | ||
"name": "can-reflect", | ||
"version": "1.13.2", | ||
"version": "1.13.3", | ||
"description": "reflection on unknown data types", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
155621
1