@symbo.ls/utils 0.0.15 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/utils",
3
- "version": "0.0.15",
3
+ "version": "2.6.0",
4
4
  "description": "",
5
5
  "source": "src/index.js",
6
6
  "main": "src/index.js",
@@ -21,5 +21,6 @@
21
21
  },
22
22
  "standard": {
23
23
  "parser": "babel-eslint"
24
- }
24
+ },
25
+ "gitHead": "41981d1b4f550992e08104002a6ca83398c03084"
25
26
  }
package/src/codify.js CHANGED
@@ -3,13 +3,13 @@
3
3
  export const stringifyProps = (props, indent = 2) => JSON.stringify(props, null, indent)
4
4
 
5
5
  export const codify = (key, props) => ({
6
- react: `import { ${key} } from 'smbls/react'
6
+ react: `import { ${key} } from 'smbls/react'
7
7
 
8
8
  const props = ${stringifyProps(props)}
9
9
 
10
10
  <${key} {...props} />`,
11
11
 
12
- domql: `import { ${key} } from 'smbls'
12
+ domql: `import { ${key} } from 'smbls'
13
13
 
14
14
  const props = ${stringifyProps(props)}
15
15
 
@@ -17,4 +17,4 @@ const component = {
17
17
  extend: ${key},
18
18
  props
19
19
  }`
20
- })
20
+ })
package/src/index.js CHANGED
@@ -4,14 +4,6 @@ export * from './navigation'
4
4
  export * from './scaling'
5
5
  export * from './codify'
6
6
 
7
- export const debounce = (func, timeout = 300) => {
8
- let timer
9
- return (...args) => {
10
- clearTimeout(timer)
11
- timer = setTimeout(() => { func.apply(this, args) }, timeout)
12
- }
13
- }
14
-
15
7
  export const copyStringToClipboard = str => {
16
8
  var el = document.createElement('textarea')
17
9
  el.value = str