@graphql-mesh/string-interpolation 0.0.1 → 0.1.0-alpha-1ffe1fa37.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @graphql-mesh/string-interpolation
2
2
 
3
+ ## 0.1.0-alpha-1ffe1fa37.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 593b7f20b: Use platform agnostic json-pointer instead of json-ptr
8
+
3
9
  ## 0.0.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
7
  const _ = _interopDefault(require('lodash'));
8
- const jsonPtr = require('json-ptr');
8
+ const JsonPointer = _interopDefault(require('json-pointer'));
9
9
 
10
10
  const defaultOptions = {
11
11
  delimiter: ['{', '}'],
@@ -140,7 +140,7 @@ class Interpolator {
140
140
  const [prop, ptr] = key.split('#');
141
141
  const propData = _.get(data, prop);
142
142
  if (ptr) {
143
- return jsonPtr.JsonPointer.get(propData, ptr);
143
+ return JsonPointer.get(propData, ptr);
144
144
  }
145
145
  return propData;
146
146
  }
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import _ from 'lodash';
2
- import { JsonPointer } from 'json-ptr';
2
+ import JsonPointer from 'json-pointer';
3
3
 
4
4
  const defaultOptions = {
5
5
  delimiter: ['{', '}'],
package/dist/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@graphql-mesh/string-interpolation",
3
- "version": "0.0.1",
3
+ "version": "0.1.0-alpha-1ffe1fa37.0",
4
4
  "description": "Dynamic string manipulation",
5
5
  "sideEffects": false,
6
6
  "dependencies": {
7
- "json-ptr": "3.1.0",
7
+ "json-pointer": "0.6.2",
8
8
  "lodash": "^4.17.21"
9
9
  },
10
10
  "repository": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/string-interpolation",
3
- "version": "0.0.1",
3
+ "version": "0.1.0-alpha-1ffe1fa37.0",
4
4
  "description": "Dynamic string manipulation",
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
- "json-ptr": "3.1.0",
23
+ "json-pointer": "0.6.2",
24
24
  "lodash": "^4.17.21"
25
25
  },
26
26
  "author": "Arda TANRIKULU <ardatanrikulu@gmail.com>",
@@ -1,7 +1,7 @@
1
1
  import { defaultOptions } from './statics/DefaultOptions';
2
2
  import _ from 'lodash';
3
3
  import { defaultModifiers } from './modifiers';
4
- import { JsonPointer } from 'json-ptr';
4
+ import JsonPointer from 'json-pointer';
5
5
 
6
6
  export class Interpolator {
7
7
  constructor(options = defaultOptions) {