langsmith 0.1.35 → 0.1.37

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.
Files changed (51) hide show
  1. package/dist/anonymizer/index.cjs +2 -2
  2. package/dist/anonymizer/index.js +1 -1
  3. package/dist/client.cjs +61 -0
  4. package/dist/client.d.ts +12 -0
  5. package/dist/client.js +61 -0
  6. package/dist/index.cjs +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/utils/lodash/assignValue.cjs +29 -0
  10. package/dist/utils/lodash/assignValue.d.ts +10 -0
  11. package/dist/utils/lodash/assignValue.js +24 -0
  12. package/dist/utils/lodash/baseAssignValue.cjs +25 -0
  13. package/dist/utils/lodash/baseAssignValue.d.ts +11 -0
  14. package/dist/utils/lodash/baseAssignValue.js +23 -0
  15. package/dist/utils/lodash/baseSet.cjs +50 -0
  16. package/dist/utils/lodash/baseSet.d.ts +12 -0
  17. package/dist/utils/lodash/baseSet.js +45 -0
  18. package/dist/utils/lodash/castPath.cjs +22 -0
  19. package/dist/utils/lodash/castPath.d.ts +10 -0
  20. package/dist/utils/lodash/castPath.js +17 -0
  21. package/dist/utils/lodash/eq.cjs +36 -0
  22. package/dist/utils/lodash/eq.d.ts +32 -0
  23. package/dist/utils/lodash/eq.js +34 -0
  24. package/dist/utils/lodash/getTag.cjs +18 -0
  25. package/dist/utils/lodash/getTag.d.ts +9 -0
  26. package/dist/utils/lodash/getTag.js +16 -0
  27. package/dist/utils/lodash/isIndex.cjs +25 -0
  28. package/dist/utils/lodash/isIndex.d.ts +10 -0
  29. package/dist/utils/lodash/isIndex.js +23 -0
  30. package/dist/utils/lodash/isKey.cjs +34 -0
  31. package/dist/utils/lodash/isKey.d.ts +10 -0
  32. package/dist/utils/lodash/isKey.js +29 -0
  33. package/dist/utils/lodash/isObject.cjs +31 -0
  34. package/dist/utils/lodash/isObject.d.ts +25 -0
  35. package/dist/utils/lodash/isObject.js +29 -0
  36. package/dist/utils/lodash/isSymbol.cjs +28 -0
  37. package/dist/utils/lodash/isSymbol.d.ts +17 -0
  38. package/dist/utils/lodash/isSymbol.js +23 -0
  39. package/dist/utils/lodash/memoizeCapped.cjs +65 -0
  40. package/dist/utils/lodash/memoizeCapped.d.ts +50 -0
  41. package/dist/utils/lodash/memoizeCapped.js +63 -0
  42. package/dist/utils/lodash/set.cjs +41 -0
  43. package/dist/utils/lodash/set.d.ts +32 -0
  44. package/dist/utils/lodash/set.js +36 -0
  45. package/dist/utils/lodash/stringToPath.cjs +49 -0
  46. package/dist/utils/lodash/stringToPath.d.ts +12 -0
  47. package/dist/utils/lodash/stringToPath.js +44 -0
  48. package/dist/utils/lodash/toKey.cjs +24 -0
  49. package/dist/utils/lodash/toKey.d.ts +9 -0
  50. package/dist/utils/lodash/toKey.js +19 -0
  51. package/package.json +1 -3
@@ -0,0 +1,44 @@
1
+ // @ts-nocheck
2
+ import memoizeCapped from "./memoizeCapped.js";
3
+ const charCodeOfDot = ".".charCodeAt(0);
4
+ const reEscapeChar = /\\(\\)?/g;
5
+ const rePropName = RegExp(
6
+ // Match anything that isn't a dot or bracket.
7
+ "[^.[\\]]+" +
8
+ "|" +
9
+ // Or match property names within brackets.
10
+ "\\[(?:" +
11
+ // Match a non-string expression.
12
+ "([^\"'][^[]*)" +
13
+ "|" +
14
+ // Or match strings (supports escaping characters).
15
+ "([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2" +
16
+ ")\\]" +
17
+ "|" +
18
+ // Or match "" as the space between consecutive dots or empty brackets.
19
+ "(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))", "g");
20
+ /**
21
+ * Converts `string` to a property path array.
22
+ *
23
+ * @private
24
+ * @param {string} string The string to convert.
25
+ * @returns {Array} Returns the property path array.
26
+ */
27
+ const stringToPath = memoizeCapped((string) => {
28
+ const result = [];
29
+ if (string.charCodeAt(0) === charCodeOfDot) {
30
+ result.push("");
31
+ }
32
+ string.replace(rePropName, (match, expression, quote, subString) => {
33
+ let key = match;
34
+ if (quote) {
35
+ key = subString.replace(reEscapeChar, "$1");
36
+ }
37
+ else if (expression) {
38
+ key = expression.trim();
39
+ }
40
+ result.push(key);
41
+ });
42
+ return result;
43
+ });
44
+ export default stringToPath;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const isSymbol_js_1 = __importDefault(require("./isSymbol.cjs"));
8
+ /** Used as references for various `Number` constants. */
9
+ const INFINITY = 1 / 0;
10
+ /**
11
+ * Converts `value` to a string key if it's not a string or symbol.
12
+ *
13
+ * @private
14
+ * @param {*} value The value to inspect.
15
+ * @returns {string|symbol} Returns the key.
16
+ */
17
+ function toKey(value) {
18
+ if (typeof value === "string" || (0, isSymbol_js_1.default)(value)) {
19
+ return value;
20
+ }
21
+ const result = `${value}`;
22
+ return result === "0" && 1 / value === -INFINITY ? "-0" : result;
23
+ }
24
+ exports.default = toKey;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Converts `value` to a string key if it's not a string or symbol.
3
+ *
4
+ * @private
5
+ * @param {*} value The value to inspect.
6
+ * @returns {string|symbol} Returns the key.
7
+ */
8
+ declare function toKey(value: any): any;
9
+ export default toKey;
@@ -0,0 +1,19 @@
1
+ // @ts-nocheck
2
+ import isSymbol from "./isSymbol.js";
3
+ /** Used as references for various `Number` constants. */
4
+ const INFINITY = 1 / 0;
5
+ /**
6
+ * Converts `value` to a string key if it's not a string or symbol.
7
+ *
8
+ * @private
9
+ * @param {*} value The value to inspect.
10
+ * @returns {string|symbol} Returns the key.
11
+ */
12
+ function toKey(value) {
13
+ if (typeof value === "string" || isSymbol(value)) {
14
+ return value;
15
+ }
16
+ const result = `${value}`;
17
+ return result === "0" && 1 / value === -INFINITY ? "-0" : result;
18
+ }
19
+ export default toKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langsmith",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.",
5
5
  "packageManager": "yarn@1.22.19",
6
6
  "files": [
@@ -95,7 +95,6 @@
95
95
  "dependencies": {
96
96
  "@types/uuid": "^9.0.1",
97
97
  "commander": "^10.0.1",
98
- "lodash.set": "^4.3.2",
99
98
  "p-queue": "^6.6.2",
100
99
  "p-retry": "4",
101
100
  "uuid": "^9.0.0"
@@ -109,7 +108,6 @@
109
108
  "@langchain/langgraph": "^0.0.19",
110
109
  "@tsconfig/recommended": "^1.0.2",
111
110
  "@types/jest": "^29.5.1",
112
- "@types/lodash.set": "^4.3.9",
113
111
  "@typescript-eslint/eslint-plugin": "^5.59.8",
114
112
  "@typescript-eslint/parser": "^5.59.8",
115
113
  "babel-jest": "^29.5.0",